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

Disassembly:
sub esp, 0x138
push ebx
push ebp
mov ebp, dword [esp + 0x148]
mov edx, dword [ebp + 4]
mov ebx, dword [ebp]
mov eax, edx
shr eax, 1
mov ecx, eax
shl ecx, 4
sub ecx, eax
test dl, 1
push esi
push edi
lea esi, [ebx + ecx*8 - 0x78]
mov ecx, 0x1e
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
jne 0x49d6d8
lea edx, [eax - 1]
test eax, edx
jne 0x49d6a7
add eax, eax
jne 0x49d689
mov eax, 1
mov ecx, eax
shl ecx, 4
sub ecx, eax
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push ebx
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [ebp], eax
je 0x49d6d8
mov eax, dword [ebp + 4]
shr eax, 1
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [ebp]
lea eax, [eax + edx*8]
lea edx, [esp + 0xd0]
call fcn.004a1200
mov eax, dword [ebp + 4]
mov ecx, eax
and ecx, 0xfffffffe
add ecx, 2
and eax, 1
xor ecx, eax
mov dword [ebp + 4], ecx
mov eax, dword [ebp + 4]
mov ebx, dword [esp + 0x14c]
shr eax, 1
mov edx, eax
shl edx, 4
sub edx, eax
mov eax, dword [ebp]
mov cl, byte [eax + edx*8 - 4]
lea eax, [eax + edx*8 - 0x78]
mov edx, dword [ebx]
mov edx, dword [edx + 0x48]
mov byte [esp + 0x17], cl
lea ecx, [eax + 0x34]
push ecx
add eax, 0x60
push eax
mov ecx, ebx
call edx
test eax, eax
jne 0x49dab6
mov eax, dword [ebp + 4]
mov edx, dword [ebp]
shr eax, 1
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*8]
lea esi, [eax - 0x6c]
mov ecx, 0xa
lea edi, [esp + 0xa8]
rep movsd dword es:[edi], dword [esi]
lea esi, [eax - 0x44]
mov ecx, 0xa
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
test dword [ebx + 0x19c], 0xfffffffe
mov dword [esp + 0x1c], esi
jbe 0x49d9c1
fld1
fldz
mov eax, dword [ebx + 0x198]
mov dl, byte [esp + 0x154]
lea edi, [esi*4]
mov ecx, dword [edi + eax]
cmp byte [ecx + 0x215], dl
jne 0x49d9a6
cmp byte [esp + 0x17], 0
je 0x49d798
cmp byte [ecx + 0x260], 0
jne 0x49d9a6
mov eax, dword [ebp + 4]
shr eax, 1
mov edx, eax
shl edx, 4
sub edx, eax
cmp byte [ecx + 0x217], 0
mov eax, dword [ebp]
lea edx, [eax + edx*8 - 0x78]
mov dword [esp + 0x18], edx
je 0x49d848
mov eax, dword [ecx]
fstp st(0)
mov edx, dword [eax + 0x5c]
fstp st(0)
call edx
fld1
fldz
test al, al
je 0x49d7dd
cmp byte [ebx + 0x260], 0
mov byte [esp + 0x16], 1
je 0x49d7e2
mov byte [esp + 0x16], 0
cmp byte [esp + 0x16], 0
je 0x49d927
mov eax, dword [ebx + 0x198]
mov esi, dword [edi + eax]
cmp byte [esi + 0x217], 0
je 0x49d85a
mov edx, dword [esi]
fstp st(0)
mov eax, dword [edx + 0x5c]
fstp st(0)
mov ecx, esi
call eax
fld1
test al, al
fldz
jne 0x49d869
fxch st(1)
mov byte [esp + 0x44], 1
fst dword [esp + 0x20]
lea esi, [esp + 0x20]
fst dword [esp + 0x30]
fstp dword [esp + 0x40]
fst dword [esp + 0x24]
fst dword [esp + 0x28]
fst dword [esp + 0x2c]
fst dword [esp + 0x34]
fst dword [esp + 0x38]
fstp dword [esp + 0x3c]
jmp 0x49d932
cmp byte [ecx + 0x55], 0
jne 0x49d7cf
cmp byte [ecx + 0xed], 0
jmp 0x49d7cd
cmp byte [esi + 0x55], 0
jne 0x49d869
cmp byte [esi + 0xed], 0
je 0x49d814
cmp byte [esi + 0x213], 0
jne 0x49d814
mov esi, dword [esi + 0x244]
test esi, esi
je 0x49d814
mov edx, dword [esi]
fxch st(1)
mov edx, dword [edx + 0x20]
fst dword [esp + 0x58]
fst dword [esp + 0x68]
lea eax, [esp + 0x58]
fstp dword [esp + 0x78]
push eax
lea ecx, [esp + 0x4c]
fst dword [esp + 0x60]
push ecx
fst dword [esp + 0x68]
mov ecx, esi
fst dword [esp + 0x6c]
mov byte [esp + 0x84], 1
fst dword [esp + 0x74]
fst dword [esp + 0x78]
fstp dword [esp + 0x7c]
call edx
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x50]
jge 0x49d904
mov ecx, dword [esp + 0x4c]
cmp ecx, dword [esp + 0x54]
jge 0x49d904
fld1
mov byte [esp + 0x44], 1
fst dword [esp + 0x20]
lea esi, [esp + 0x20]
fldz
fst dword [esp + 0x24]
fst dword [esp + 0x28]
fst dword [esp + 0x2c]
fst dword [esp + 0x34]
fst dword [esp + 0x38]
fstp dword [esp + 0x3c]
fst dword [esp + 0x30]
fstp dword [esp + 0x40]
jmp 0x49d932
test byte [esi + 8], 1
je 0x49d910
push esi
call fcn.0049be90
add esi, 0x1dc
mov ecx, 0xa
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x20]
jmp 0x49d932
fstp st(0)
lea esi, [esp + 0x80]
fstp st(0)
mov edi, dword [esp + 0x18]
add edi, 0x34
cmp byte [esp + 0x16], 0
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
je 0x49d965
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x198]
add ecx, ecx
add ecx, ecx
add eax, ecx
mov eax, dword [eax]
lea edx, [esp + 0x58]
push edx
call fcn.0049ee30
jmp 0x49d96c
lea eax, [esp + 0xa8]
mov edi, dword [esp + 0x18]
mov esi, eax
add edi, 0xc
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x198]
add ecx, ecx
add ecx, ecx
add eax, ecx
mov ecx, dword [eax]
push ebp
call fcn.0049e430
test eax, eax
jne 0x49dab6
fldz
mov esi, dword [esp + 0x1c]
fld1
fxch st(1)
mov eax, dword [ebx + 0x19c]
add esi, 1
shr eax, 1
cmp esi, eax
mov dword [esp + 0x1c], esi
jb 0x49d761
fstp st(0)
fstp st(0)
mov eax, dword [ebp + 4]
mov edi, eax
shr edi, 1
je 0x49dab4
lea esi, [edi - 1]
cmp esi, 0x1111111
jbe 0x49da07
mov eax, dword [ebp]
test eax, eax
je 0x49dab4
push eax
call fcn.0045da90
and dword [ebp + 4], 1
add esp, 4
mov dword [ebp], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret 0xc
and eax, 1
cmp esi, edi
je 0x49dab4
test eax, eax
je 0x49da35
mov edx, dword [ebp]
mov ecx, esi
shl ecx, 4
sub ecx, esi
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push edx
call fcn.0045d790
add esp, 8
mov dword [ebp], eax
jmp 0x49daa6
mov eax, 1
cmp esi, eax
jb 0x49da46
mov edi, edi
add eax, eax
cmp eax, esi
jbe 0x49da40
mov edx, edi
test edx, edx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
jge 0x49da5a
fadd dword [0x6c0a38]
fstp dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
shr ecx, 0x17
and ecx, 0xff
sub ecx, 0x7f
js 0x49da79
mov edx, 1
shl edx, cl
jmp 0x49da7b
xor edx, edx
cmp edx, edi
jae 0x49da81
add edx, edx
cmp edx, eax
je 0x49daa6
mov edx, dword [ebp]
mov ecx, eax
shl ecx, 4
sub ecx, eax
add ecx, ecx
add ecx, ecx
add ecx, ecx
push ecx
push edx
call fcn.0045d790
add esp, 8
test eax, eax
mov dword [ebp], eax
je 0x49dab4
mov ecx, dword [ebp + 4]
and ecx, 1
lea eax, [esi + esi]
or eax, ecx
mov dword [ebp + 4], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret 0xc