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

Disassembly:
sub esp, 0x60
push ebx
mov ebx, ecx
mov dword [esp + 0xc], 1
lea eax, [ebx + 0xa8]
mov dword [esp + 8], 0
mov dword [eax], 0
push ebp
mov dword [eax + 4], 0
lea ebp, [ebx + 8]
mov ecx, dword [ebp + 0x7c]
push esi
mov esi, dword [ebp + 0x78]
mov dword [esp + 0x30], eax
mov eax, esi
push edi
and eax, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ecx
mov edi, edx
mov dword [esp + 0x1c], edi
cmp eax, 0xffffffff
je 0x49e9a3
mov eax, dword [ebp + 0x90]
mov edx, dword [ebp + 0x94]
and eax, edx
cmp eax, 0xffffffff
je 0x49e9a3
push ecx
push esi
push edx
push dword [ebp + 0x90]
call fcn.004a3030
mov ecx, edx
mov dword [esp + 0x18], eax
push ecx
push eax
push dword [esp + 0x18]
mov dword [esp + 0x20], ecx
push esi
call fcn.004a2f70
cmp eax, dword [ebp + 0x90]
jne 0x49e997
cmp edx, dword [ebp + 0x94]
je 0x49e9b1
add dword [esp + 0x18], 1
adc dword [esp + 0x14], 0
jmp 0x49e9b1
xor esi, esi
mov dword [esp + 0x10], 0x40000000
mov dword [esp + 0x20], esi
mov eax, dword [ebx]
mov ecx, esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
shrd ecx, eax, 0xa
shr eax, 0xa
add ecx, esi
adc eax, dword [esp + 0x10]
add ecx, 0x450
adc eax, 0
push eax
push ecx
lea ecx, [esp + 0x58]
call fcn.0049aea0
push dword [esp + 0x10]
mov esi, eax
lea ecx, [esp + 0x54]
push dword [esp + 0x24]
add ecx, esi
call fcn.0049aea0
lea ecx, [esi + eax]
mov eax, dword [esp + 0x14]
mul ecx
mov esi, eax
mov eax, dword [esp + 0x18]
mul ecx
add esi, edx
mov ecx, eax
mov eax, dword [ebx + 0xb0]
mov dword [esp + 0x20], esi
mov esi, dword [ebx + 0xac]
sub eax, esi
mov edx, dword [esp + 0x20]
test edx, edx
jb 0x49ea8f
ja 0x49ea28
cmp ecx, eax
jbe 0x49ea8f
xor eax, eax
add esi, ecx
adc eax, edx
xor ecx, ecx
cmp ecx, eax
jne 0x49eae6
mov eax, dword [esp + 0x24]
mov edx, esi
mov ecx, eax
mov eax, dword [eax]
call eax
mov dword [esp + 0x20], eax
test eax, eax
je 0x49eae6
mov ecx, dword [ebx + 0xac]
test ecx, ecx
je 0x49ea6a
push ecx
push dword [ebx + 0xb4]
push eax
call fcn.004a40c0
add esp, 0xc
mov edx, dword [ebx + 0xb4]
test edx, edx
je 0x49ea7f
mov eax, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [eax + 4]
call eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0xb0], esi
mov eax, dword [0x4c1580]
mov edx, 2
movzx ecx, word [ebp + 0x70]
mov dword [esp + 0x28], eax
mov ax, word [0x4c1584]
mov word [esp + 0x2c], ax
mov eax, ecx
shr eax, 8
mov byte [esp + 0x2f], cl
lea ecx, [esp + 0x2e]
mov byte [esp + 0x2e], al
call fcn.004a1380
mov dword [esp + 0x30], eax
lea edx, [esp + 0x28]
mov eax, dword [edi]
mov ecx, edi
push 0xc
call eax
cmp eax, 0xc
je 0x49eaf5
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
add esp, 0x60
ret 8
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x60
ret 8
cmp dword [ebp + 0x80], 1
jle 0x49ec40
cmp dword [ebx + 0xef4], 0
jne 0x49eb20
lea ecx, [ebx + 0xef8]
mov dword [ebx + 0xef4], 1
call fcn.00494ae0
mov eax, dword [ebp + 0x70]
mov ecx, 0x26
mov dword [ebx + 0xeec], eax
mov esi, ebp
mov eax, dword [ebx + 4]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
mov dword [ebx + 0xf18], eax
mov eax, dword [esp + 0x78]
mov dword [ebx + 0xf14], eax
mov eax, dword [esp + 0x74]
mov dword [ebx + 0xf08], eax
lea eax, [esp + 0x28]
mov dword [ebx + 0xf1c], eax
mov dword [ebx + 0xef0], esi
mov dword [ebx + 0xf0c], 0
mov dword [ebx + 0xf10], 0
mov dword [ebx + 0xf20], ebx
mov ecx, dword [ebp + 0x78]
mov eax, ecx
mov edx, dword [ebp + 0x7c]
and eax, edx
mov dword [esp + 0x28], 0x49eee0
mov dword [esp + 0x2c], 0x49eff0
cmp eax, 0xffffffff
je 0x49ec31
mov eax, ecx
or eax, edx
je 0x49ec31
mov dword [ebx + 0xef8], ecx
xor eax, eax
cmp ecx, dword [ebp + 0x78]
jne 0x49ed64
cmp eax, dword [ebp + 0x7c]
jne 0x49ed64
mov eax, ecx
lea edi, [ecx + 0x450]
shr eax, 0xa
add edi, eax
cmp edi, ecx
jb 0x49ed64
cmp dword [ebx + 0xdb8], edi
je 0x49ebea
mov ecx, ebx
call fcn.0049eea0
mov edx, dword [ebx + 0xa4]
lea ecx, [ebx + 0xef8]
mov dword [ebx + 0xdb8], edi
mov eax, dword [ebp + 0x84]
mov dword [ebx + 0xefc], eax
mov eax, dword [ebx + 0xa0]
mov dword [ebx + 0xf00], eax
mov dword [ebx + 0xf04], edx
call fcn.004948e0
test eax, eax
je 0x49ee7d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x60
ret 8
mov eax, dword [esp + 0x78]
xor esi, esi
mov edx, dword [ebp + 0x78]
xorps xmm0, xmm0
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov eax, edx
mov dword [esp + 0x10], esi
and eax, dword [ebp + 0x7c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], 0x49e140
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x14], ecx
cmp eax, 0xffffffff
je 0x49ed30
mov eax, dword [ebp + 0x8c]
test eax, eax
setg cl
mov dword [esp + 0x14], ecx
test eax, eax
jle 0x49ed30
mov esi, dword [ebp + 0x7c]
xor eax, eax
cmp eax, esi
jne 0x49ed64
mov eax, edx
mov dword [esp + 0x24], 0
shr eax, 0xa
add eax, 0x50
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x24], esi
jb 0x49ed64
ja 0x49ecce
cmp eax, edx
jb 0x49ed64
lea edx, [eax + 0x400]
mov eax, dword [ebx + 0xdbc]
test eax, eax
je 0x49ece6
cmp edx, dword [ebx + 0xdb8]
je 0x49ed26
mov ecx, ebx
call fcn.0049eea0
mov esi, dword [ebx]
mov ecx, esi
mov edx, dword [esp + 0x18]
mov esi, dword [esi]
lea edx, [edx + 0x400]
call esi
mov dword [ebx + 0xdbc], eax
test eax, eax
je 0x49eae6
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
add eax, 0x400
mov dword [ebx + 0xdb8], eax
mov eax, dword [ebx + 0xdbc]
lea esi, [eax + 0x400]
mov dword [esp + 0x10], esi
xor eax, eax
lea edx, [esp + 0x38]
cmp dword [esp + 0x78], eax
cmove edx, eax
test ecx, ecx
mov dword [esp + 0x20], edx
cmovne edi, eax
mov dword [esp + 0x28], edi
nop word [eax + eax]
mov dword [esp + 0x60], 0
test ecx, ecx
je 0x49ed73
mov eax, dword [ebx + 0xdbc]
jmp 0x49ed75
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x60
ret 8
xor eax, eax
push dword [ebx + 4]
lea ecx, [esp + 0x54]
push dword [ebx]
push ecx
lea ecx, [esp + 0x30]
push ecx
push edx
push ebp
push 0
push 0
push dword [esp + 0x94]
mov edx, edi
lea ecx, [ebx + 0xb8]
push dword [esp + 0x3c]
push esi
push eax
call fcn.0049f460
test eax, eax
jne 0x49ee8b
mov eax, dword [esp + 0x58]
xor esi, esi
mov ecx, dword [esp + 0x5c]
mov edi, eax
neg edi
and edi, 3
add edi, eax
adc esi, ecx
cmp dword [esp + 0x14], 0
mov dword [esp + 0x78], esi
je 0x49ee1e
mov eax, dword [esp + 0x1c]
mov ecx, eax
mov esi, dword [esp + 0x60]
mov edx, dword [ebx + 0xdbc]
push esi
mov eax, dword [eax]
call eax
xor edx, edx
mov ecx, 9
cmp eax, esi
cmove ecx, edx
jne 0x49ee6d
mov eax, dword [esp + 0x1c]
mov esi, edi
sub esi, dword [esp + 0x60]
mov ecx, eax
mov edx, dword [esp + 0x10]
push esi
mov eax, dword [eax]
call eax
xor edx, edx
mov ecx, 9
cmp eax, esi
cmove ecx, edx
jne 0x49ee6d
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [ebx]
push ecx
push eax
push dword [esp + 0x5c]
lea ecx, [ebx + 0xa8]
push dword [esp + 0x5c]
call fcn.0049e4e0
test eax, eax
jne 0x49ee8b
mov eax, dword [esp + 0x50]
add dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
adc dword [esp + 0x44], eax
add dword [esp + 0x48], edi
adc dword [esp + 0x4c], esi
cmp dword [esp + 0x24], 0
jne 0x49ee79
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x28]
jmp 0x49ed50
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x60
ret 8
mov esi, dword [esp + 0x1c]
mov dx, word [ebp + 0x70]
mov ecx, dword [esp + 0x34]
push esi
call fcn.0049e5d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret 8