Function at 0x4999a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4c6cdc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
mov eax, dword [esp + 0x104]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
push edi
mov edi, ecx
fld dword [edi + 0x18c]
mov ecx, dword [eax + 8]
cmp esi, ecx
fmul dword [0x4f26c8]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], esi
fstp dword [esp + 0xa0]
je 0x49a5e4
jmp 0x4999f7
mov esi, dword [esp + 0x14]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x20]
test eax, eax
sete dl
cmp eax, 2
jne 0x499a10
cmp dword [ecx + 0x24], 8
jne 0x499a10
mov al, 1
jmp 0x499a12
xor al, al
test dl, dl
jne 0x499a1c
cmp al, 1
jne 0x499a1c
mov dl, al
test dl, dl
mov al, byte [ecx + 0x1c]
je 0x49a5c9
test al, al
je 0x49a5c9
fld dword [esp + 0xa0]
mov eax, dword [ecx + 0x38]
fmul dword [ecx + 0x44]
mov eax, dword [eax]
mov edx, dword [eax]
mov eax, dword [eax + 4]
fstp dword [esp + 0x10]
mov dword [esp + 0x30], eax
fld dword [0x4fc4b8]
xor bl, bl
fcomp dword [esp + 0x10]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edx
fnstsw ax
test ah, 5
jp 0x49a5c2
mov edi, edi
test bl, bl
jne 0x49a56e
fld dword [0x4f2a20]
fld dword [esp + 0x28]
fadd dword [0x4f2a20]
fcom dword [esp + 0x10]
fnstsw ax
test ah, 0x41
jnp 0x499aa9
fstp st(0)
fstp st(0)
fld dword [esp + 0x10]
fsub dword [esp + 0x28]
fld dword [esp + 0x10]
fadd dword [0x4f26c8]
mov ecx, dword [ecx + 0x38]
fstp dword [esp + 0x28]
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
add eax, 8
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
xor eax, eax
jmp 0x499ad0
fld st(0)
inc eax
cmp eax, 2
fmul dword [esp + eax*4 + 0x8c]
fstp dword [esp + eax*4 + 0x8c]
jb 0x499ad0
mov eax, dword [esp + 0x90]
fstp st(0)
mov ecx, dword [esp + 0x94]
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], ecx
xor eax, eax
jmp 0x499b10
fld dword [esp + eax + 0xe8]
add eax, 4
cmp eax, 8
fadd dword [esp + eax + 0x28]
fstp dword [esp + eax + 0x28]
jb 0x499b10
mov ebp, dword [edi + 0x10]
mov dword [esp + 0x10], ebp
xor esi, esi
mov ecx, dword [edi + 0x10]
test ecx, ecx
je 0x49a53f
mov eax, dword [edi + 0x14]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x49a53f
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x30]
mov edx, ecx
mov ecx, dword [edx + esi*4]
mov dword [esp + 0x5c], eax
xor eax, eax
add ecx, 8
fld dword [esp + eax*4 + 0x58]
inc eax
fsub dword [ecx]
add ecx, 4
cmp eax, 2
fstp dword [esp + eax*4 + 0x54]
jb 0x499b65
mov eax, dword [esp + 0x5c]
fld dword [0x4fc4b8]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xe0], eax
mov dword [esp + 0xdc], ecx
xor eax, eax
jmp 0x499ba0
fld dword [esp + eax*4 + 0xdc]
inc eax
cmp eax, 2
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x499ba0
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jp 0x499bcc
fstp st(0)
fld dword [0x4fc4b8]
jmp 0x499bce
fsqrt
fcomp dword [edi + 0x1ac]
fnstsw ax
test ah, 5
jp 0x499bf6
mov edx, dword [edx + esi*4]
mov ecx, dword [edx + 0x2c]
call fcn.00481fe0
fld dword [eax + 8]
fcomp dword [0x4f5888]
fnstsw ax
test ah, 5
jnp 0x499bff
add ebp, 4
inc esi
jmp 0x499b30
mov eax, dword [edi + 0x10]
xor ecx, ecx
mov dword [esp + 0x10], ebp
mov dword [edi + 0x2b8], ecx
mov ebp, dword [eax + esi*4]
cmp ebp, ecx
mov dword [esp + 0x100], ebp
je 0x499c1f
inc dword [ebp + 4]
mov al, byte [ebp + 0x21]
test al, al
mov dword [esp + 0x10c], ecx
je 0x499c55
mov eax, dword [ebp + 4]
dec eax
mov bl, 1
mov dword [esp + 0x10c], 0xffffffff
mov dword [ebp + 4], eax
jne 0x49a539
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
jmp 0x49a543
push 0x5c
call fcn.004ad909
xor ecx, ecx
add esp, 4
cmp eax, ecx
je 0x499c89
mov dword [eax + 4], ecx
mov dword [eax], 0x4f7340
xor edx, edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], ecx
mov esi, eax
jmp 0x499c8b
xor esi, esi
cmp esi, ecx
mov dword [esp + 0xb8], esi
je 0x499c99
inc dword [esi + 4]
fld dword [edi + 0x1ac]
fmul dword [0x4f2588]
push 1
push 1
sub esp, 8
mov eax, esp
fstp dword [esp + 4]
mov dword [eax], ebp
mov edx, dword [ebp + 4]
lea eax, [esp + 0xf4]
mov dword [esp + 0x78], esp
inc edx
push eax
mov ecx, edi
mov byte [esp + 0x120], 1
mov dword [ebp + 4], edx
call fcn.0048e770
mov ebx, dword [eax]
test ebx, ebx
mov byte [esp + 0x10c], 2
mov dword [esp + 0x68], ebx
je 0x499ceb
inc dword [ebx + 4]
test esi, esi
mov dword [esp + 0xb8], ebx
je 0x499d0b
mov ecx, dword [esi + 4]
dec ecx
mov eax, ecx
test eax, eax
mov dword [esi + 4], ecx
jne 0x499d0b
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov eax, dword [esp + 0xe4]
test eax, eax
mov byte [esp + 0x10c], 1
je 0x499d37
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov eax, edx
mov dword [esp + 0x20], eax
jne 0x499d37
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
add ebx, 8
lea esi, [ebp + 8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], eax
mov ecx, esi
lea edx, [esp + 0x34]
xor eax, eax
sub ecx, edx
fld dword [esp + eax*4 + 0x34]
lea edx, [ecx + eax*4]
fsub dword [esp + edx + 0x34]
inc eax
cmp eax, 2
fstp dword [esp + eax*4 + 0x30]
jb 0x499d55
mov eax, dword [esp + 0x34]
fld dword [0x4fc4b8]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
xor eax, eax
fld dword [esp + eax*4 + 0x60]
inc eax
cmp eax, 2
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x499d82
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jnp 0x499dc8
fsqrt
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jnp 0x499dc8
fdivr dword [0x4f1a10]
xor eax, eax
fld st(0)
inc eax
cmp eax, 2
fmul dword [esp + eax*4 + 0x5c]
fstp dword [esp + eax*4 + 0x5c]
jb 0x499db8
lea ecx, [esp + 0x60]
fstp st(0)
call fcn.00465170
fsub dword [0x4f7314]
mov edx, esi
mov eax, dword [edx]
fld st(0)
mov ecx, dword [edx + 4]
fcos
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
xor eax, eax
fstp dword [esp + 0xf0]
fsin
fstp dword [esp + 0xf4]
mov edi, edi
fld dword [esp + eax + 0x6c]
add eax, 4
cmp eax, 8
fsub dword [esp + eax + 0xec]
fstp dword [esp + eax + 0x68]
jb 0x499e00
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x7c], eax
fld dword [esp + 0x7c]
mov dword [esp + 0x78], edx
mov ecx, esi
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x54], eax
fsub dword [esp + 0x54]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
fstp dword [esp + 0x3c]
mov dword [esp + 0x50], edx
fld dword [esp + 0x50]
mov edx, dword [esp + 0x30]
fsub dword [esp + 0x78]
add eax, 0x34
mov eax, dword [eax + 4]
mov eax, dword [eax]
fstp dword [esp + 0x40]
add eax, 8
fld dword [esp + 0x54]
mov dword [esp + 0x98], ecx
fmul dword [esp + 0x78]
mov ecx, dword [eax]
fld dword [esp + 0x7c]
mov dword [esp + 0x9c], edx
fmul dword [esp + 0x50]
mov edx, dword [eax + 4]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
fsubp st(1)
xor eax, eax
fstp dword [esp + 0x44]
fld dword [0x4fc4b8]
fld dword [esp + eax*4 + 0x48]
inc eax
cmp eax, 2
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x499ea0
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jnp 0x499ee6
fsqrt
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jnp 0x499ee6
fdivr dword [0x4f1a10]
xor eax, eax
fld st(0)
inc eax
cmp eax, 2
fmul dword [esp + eax*4 + 0x44]
fstp dword [esp + eax*4 + 0x44]
jb 0x499ed6
fstp st(0)
xor eax, eax
fld dword [0x4fc4b8]
fld dword [esp + eax*4 + 0xdc]
inc eax
cmp eax, 2
fld st(0)
fmul st(1)
faddp st(2)
fstp st(0)
jb 0x499ef0
fcom dword [0x4fc4b8]
fnstsw ax
test ah, 0x44
jp 0x499f1c
fstp st(0)
fld dword [0x4fc4b8]
jmp 0x499f1e
fsqrt
fld dword [edi + 0x1ac]
mov eax, dword [esp + 0x48]
fmul dword [0x4f2588]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
fsubp st(1)
xor eax, eax
fld st(0)
inc eax
cmp eax, 2
fmul dword [esp + eax*4 + 0x84]
fstp dword [esp + eax*4 + 0x84]
jb 0x499f44
mov eax, dword [esp + 0x8c]
fstp st(0)
mov edx, dword [esp + 0x88]
mov dword [esp + 0xfc], eax
mov dword [esp + 0xf8], edx
xor eax, eax
lea ebx, [ebx]
fld dword [esp + eax + 0xf8]
add eax, 4
cmp eax, 8
fadd dword [esp + eax + 0x94]
fstp dword [esp + eax + 0x94]
jb 0x499f80
mov ecx, dword [esp + 0x98]
fld dword [esp + 0x3c]
mov edx, dword [esp + 0x9c]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xd4], ecx
fmul dword [esp + 0xd4]
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax]
mov dword [esp + 0xd8], edx
fld dword [esp + 0xd8]
fmul dword [esp + 0x40]
mov edx, dword [eax + 4]
mov eax, dword [esi]
mov dword [esp + 0x80], ecx
mov ecx, dword [esi + 4]
faddp st(1)
mov dword [esp + 0x84], edx
mov edx, dword [edi + 0x240]
fadd dword [esp + 0x44]
mov dword [esp + 0xa4], eax
mov eax, dword [edi + 0x244]
mov dword [esp + 0xa8], ecx
fst dword [esp + 0x74]
fld dword [esp + 0x84]
add edi, 0x240
fsub dword [esp + 0xa8]
mov dword [esp + 0xb4], eax
fld dword [esp + 0xa4]
mov dword [esp + 0xb0], edx
fsub dword [esp + 0x80]
fld dword [esp + 0x80]
fmul dword [esp + 0xa8]
fld dword [esp + 0xa4]
fmul dword [esp + 0x84]
fsubp st(1)
fxch st(2)
fmul dword [esp + 0xb0]
fld dword [esp + 0xb4]
fmul st(2)
faddp st(1)
fadd st(2)
fxch st(2)
fstp st(0)
fstp st(0)
fcomp dword [0x4fc4b8]
fnstsw ax
fcomp dword [0x4fc4b8]
test ah, 5
fnstsw ax
jp 0x49a0a5
test ah, 0x41
je 0x49a0b7
mov dword [esp + 0x18], 0xffffffff
jmp 0x49a208
test ah, 0x41
jne 0x49a0b7
mov dword [esp + 0x18], 0xffffffff
jmp 0x49a208
push 0x5c
mov dword [esp + 0x1c], 1
call fcn.004ad909
add esp, 4
test eax, eax
je 0x49a0f5
xor ebx, ebx
mov dword [eax + 4], ebx
mov dword [eax], 0x4f7340
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x2c], ebx
xor edx, edx
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], ebx
mov dword [eax + 0x44], ebx
mov edi, eax
jmp 0x49a0f9
xor edi, edi
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x49a104
inc dword [edi + 4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x1ac]
push 1
push ebx
push eax
push ecx
mov eax, esp
mov dword [eax], ebp
mov eax, dword [ebp + 4]
lea edx, [esp + 0xcc]
mov dword [esp + 0x34], esp
inc eax
push edx
mov byte [esp + 0x120], 3
mov dword [ebp + 4], eax
call fcn.0048e770
mov esi, dword [eax]
cmp esi, ebx
mov byte [esp + 0x10c], 4
je 0x49a148
inc dword [esi + 4]
cmp edi, ebx
mov dword [esp + 0x20], esi
je 0x49a165
mov ecx, dword [edi + 4]
dec ecx
mov eax, ecx
cmp eax, ebx
mov dword [edi + 4], ecx
jne 0x49a165
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esp + 0xbc]
cmp eax, ebx
mov byte [esp + 0x10c], 3
je 0x49a18f
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov dword [esp + 0x24], edx
jne 0x49a18f
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 8]
fld dword [esp + 0x3c]
mov edx, dword [esi + 0xc]
mov dword [esp + 0xc0], ecx
fmul dword [esp + 0xc0]
mov dword [esp + 0xc4], edx
fld dword [esp + 0xc4]
fmul dword [esp + 0x40]
faddp st(1)
fadd dword [esp + 0x44]
fld dword [esp + 0x74]
fmul st(1)
fcomp dword [0x4fc4b8]
fnstsw ax
fstp st(0)
test ah, 5
jp 0x49a1dc
mov dword [esp + 0x18], 0xffffffff
cmp esi, ebx
mov byte [esp + 0x10c], 1
je 0x49a1fd
mov ecx, dword [esi + 4]
dec ecx
mov eax, ecx
cmp eax, ebx
mov dword [esi + 4], ecx
jne 0x49a1fd
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
cmp dword [esp + 0x18], 0xffffffff
jne 0x49a347
push 0x5c
call fcn.004ad909
add esp, 4
test eax, eax
je 0x49a23e
xor ebx, ebx
mov dword [eax + 4], ebx
mov dword [eax], 0x4f7340
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x2c], ebx
xor edx, edx
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], ebx
mov dword [eax + 0x44], ebx
mov edi, eax
jmp 0x49a242
xor edi, edi
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x20], edi
je 0x49a24d
inc dword [edi + 4]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x1ac]
push 1
push 1
push eax
push ecx
mov eax, esp
mov dword [eax], ebp
mov eax, dword [ebp + 4]
lea edx, [esp + 0xbc]
mov dword [esp + 0x34], esp
inc eax
push edx
mov byte [esp + 0x120], 5
mov dword [ebp + 4], eax
call fcn.0048e770
mov esi, dword [eax]
cmp esi, ebx
mov byte [esp + 0x10c], 6
je 0x49a292
inc dword [esi + 4]
cmp edi, ebx
mov dword [esp + 0x20], esi
je 0x49a2af
mov ecx, dword [edi + 4]
dec ecx
mov eax, ecx
cmp eax, ebx
mov dword [edi + 4], ecx
jne 0x49a2af
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esp + 0xac]
cmp eax, ebx
mov byte [esp + 0x10c], 5
je 0x49a2d9
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov dword [esp + 0x24], edx
jne 0x49a2d9
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 8]
fld dword [esp + 0x3c]
mov edx, dword [esi + 0xc]
mov dword [esp + 0xcc], ecx
fmul dword [esp + 0xcc]
mov dword [esp + 0xd0], edx
fld dword [esp + 0xd0]
fmul dword [esp + 0x40]
faddp st(1)
fadd dword [esp + 0x44]
fld dword [esp + 0x74]
fmul st(1)
fcomp dword [0x4fc4b8]
fnstsw ax
fstp st(0)
test ah, 5
jp 0x49a326
mov dword [esp + 0x18], 1
cmp esi, ebx
mov byte [esp + 0x10c], 1
je 0x49a347
mov ecx, dword [esi + 4]
dec ecx
mov eax, ecx
test eax, eax
mov dword [esi + 4], ecx
jne 0x49a347
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
push 0x5c
call fcn.004ad909
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x49a37d
mov dword [eax + 4], ebx
mov dword [eax], 0x4f7340
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x2c], ebx
xor edx, edx
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], edx
mov dword [eax + 0x40], ebx
mov dword [eax + 0x44], ebx
mov esi, eax
jmp 0x49a37f
xor esi, esi
cmp esi, ebx
mov dword [esp + 0x20], esi
je 0x49a38a
inc dword [esi + 4]
mov eax, dword [ebp + 0x14]
dec eax
cmp esi, ebx
push eax
push ecx
mov eax, esp
mov byte [esp + 0x114], 7
mov dword [esp + 0x2c], esp
mov dword [eax], esi
je 0x49a3a7
inc dword [esi + 4]
mov edi, dword [esp + 0x24]
mov ecx, edi
call fcn.0048e3a0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x24], ebx
mov byte [esi + 0x21], 1
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1c], ecx
mov edx, dword [eax]
mov ecx, dword [edx + 0xc]
mov dword [esi + 0x10], ecx
mov eax, dword [eax]
cmp dword [eax + 0x20], 2
jne 0x49a3f8
cmp dword [eax + 0x24], 8
jne 0x49a3f8
mov dword [esi + 0x10], 7
mov byte [esi + 0x2a], 1
mov edx, dword [esi + 0x10]
push edx
lea eax, [esp + 0xcc]
push eax
mov ecx, edi
call fcn.004952d0
mov eax, dword [eax]
cmp eax, ebx
mov byte [esp + 0x10c], 8
je 0x49a41c
inc dword [eax + 4]
mov ecx, dword [esi + 0x2c]
cmp ecx, ebx
mov dword [esi + 0x2c], eax
je 0x49a439
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
cmp eax, ebx
mov dword [ecx + 4], edx
jne 0x49a439
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esp + 0xc8]
cmp eax, ebx
mov byte [esp + 0x10c], 7
je 0x49a465
mov edx, dword [eax + 4]
mov ecx, eax
add eax, 4
dec edx
mov dword [eax], edx
mov eax, edx
mov dword [esp + 0x24], eax
jne 0x49a465
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, dword [esi + 0x2c]
cmp eax, ebx
push 1
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
mov dword [ecx], eax
je 0x49a47c
inc dword [eax + 4]
mov byte [esp + 0x118], 9
call fcn.0040e220
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x118], 7
call dword [edx + 0x10]
mov eax, dword [esp + 0x18]
cmp eax, 1
mov byte [esi + 0x22], 0
jne 0x49a4af
mov cl, byte [ebp + 0x22]
mov byte [esi + 0x22], cl
mov byte [ebp + 0x22], 0
cmp eax, 1
mov dl, byte [ebp + 0x23]
mov byte [esi + 0x23], dl
jne 0x49a4bf
add dword [esp + 0x10], 4
lea eax, [esp + 0x20]
push eax
push 1
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
add ecx, 0xc
call fcn.004935d0
mov ecx, dword [esi + 4]
dec ecx
mov eax, ecx
test eax, eax
mov bl, 1
mov byte [esp + 0x10c], bl
mov dword [esi + 4], ecx
jne 0x49a4f9
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov ecx, dword [esp + 0x68]
test ecx, ecx
mov byte [esp + 0x10c], 0
je 0x49a51c
mov edx, dword [ecx + 4]
dec edx
mov eax, edx
test eax, eax
mov dword [ecx + 4], edx
jne 0x49a51c
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp + 4]
dec eax
mov dword [esp + 0x10c], 0xffffffff
mov dword [ebp + 4], eax
jne 0x49a539
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
mov edi, dword [esp + 0x1c]
jmp 0x49a543
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x14]
fld dword [esp + 0xa0]
mov ecx, dword [eax]
fmul dword [ecx + 0x44]
fstp dword [esp + 0x10]
fld dword [esp + 0x28]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jnp 0x499a70
test bl, bl
je 0x49a5c2
mov ebx, dword [esp + 0x14]
mov ecx, dword [ebx]
mov edx, dword [ecx + 0x38]
mov eax, dword [edx]
mov ecx, dword [eax + 0x20]
push 1
call fcn.004244f0
mov esi, dword [ebx]
test esi, esi
je 0x49a599
mov ecx, esi
call fcn.004a7470
push esi
call fcn.004ade5d
add esp, 4
mov esi, dword [esp + 0x114]
mov ecx, dword [esi + 8]
lea eax, [ebx + 4]
cmp eax, ecx
je 0x49a5bc
mov edx, ebx
sub edx, eax
mov edi, edi
mov ebx, dword [eax]
mov dword [eax + edx], ebx
add eax, 4
cmp eax, ecx
jne 0x49a5b0
add dword [esi + 8], 0xfffffffc
jmp 0x49a5d0
add dword [esp + 0x14], 4
jmp 0x49a5d0
add esi, 4
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x14]
cmp edx, dword [ecx + 8]
jne 0x4999f3
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x100
ret 4