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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x674
mov eax, dword [0x1008e060]
xor eax, esp
mov dword [esp + 0x670], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0x14]
push esi
add eax, eax
add eax, eax
add eax, eax
sub eax, dword [ebx + 0x1c]
mov esi, ecx
add eax, dword [ebx + 0xc]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x9c]
push edi
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x10]
push 0
mov dword [esp + 0x34], eax
push 0
mov eax, 1
mov dword [esi + 0x64], eax
mov dword [edx + 0x1c], eax
mov eax, dword [esi + 0x9c]
push 0
push 0x10
mov dword [esp + 0x48], ecx
mov dword [eax + 0x14], 0
mov ecx, dword [esi + 0x9c]
push 0
push ecx
push esi
call fcn.10049400
mov edx, dword [esi + 0x9c]
call fcn.10049af0
mov edx, dword [esi + 0x9c]
push edx
push esi
push ebx
call fcn.10055840
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x9c]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0x30]
cdq
idiv edi
add esp, 0x28
mov dword [ecx + 0x2c], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x30]
cdq
idiv edi
mov edx, dword [esp + 0x2c]
sub edx, eax
mov dword [ecx + 0x28], edx
mov ecx, dword [ebx + 0xc]
and ecx, 7
mov eax, 8
sub eax, ecx
cmp eax, 8
jge 0x10049c4e
mov edx, dword [eax*4 + 0x10081adc]
push edx
mov edx, ebx
call fcn.10048480
add esp, 4
mov eax, dword [esi + 0x9c]
mov ecx, dword [eax + 0x44]
mov edx, dword [ecx + 0xf0]
push edx
push 1
push eax
push esi
push ebx
call fcn.10055420
mov eax, dword [esi + 0x9c]
xor edi, edi
mov dword [eax + 0x11c], edi
mov eax, dword [esp + 0x4c]
mov edx, dword [esi + 0x9c]
mov ecx, eax
imul ecx, dword [esp + 0x44]
mov dword [edx + 0x128], ecx
mov ecx, dword [esi + 0x9c]
mov dword [ecx + 0x130], edi
mov edx, dword [esi + 0x9c]
add esp, 0x14
cmp eax, edi
mov dword [edx + 0x12c], edi
mov dword [esp + 0x24], edi
jle 0x10049de1
xor edx, edx
mov dword [esp + 0x28], edx
jmp 0x10049cc2
mov edx, ecx
cmp dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
jle 0x10049dc9
xor ecx, ecx
mov dword [esp + 0x34], ecx
jmp 0x10049ce6
mov edx, dword [esp + 0x28]
mov ecx, eax
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x9c]
imul edi, edx
add edi, ecx
imul edi, edi, 0x1b4
add edi, dword [eax + 0x44]
xor eax, eax
mov dword [edi + 0xec], 3
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], eax
mov dword [edi + 8], eax
mov dword [edi], eax
mov dword [edi + 0x1c], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0xc], eax
mov dword [edi + 4], eax
mov dword [edi + 0x150], eax
mov dword [edi + 0x14c], eax
mov dword [edi + 0x148], eax
mov dword [edi + 0x144], eax
mov dword [edi + 0x154], eax
cmp dword [edi + 0x158], eax
je 0x10049d50
mov dword [edi + 0xec], 4
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x344]
push eax
push edx
push ecx
mov ecx, dword [esi + 0x9c]
push edi
push ecx
push esi
call fcn.100442b0
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x54]
push eax
mov eax, dword [esi + 0x9c]
push ecx
push edx
push eax
call fcn.100536f0
mov eax, dword [esi + 0x9c]
lea ecx, [eax + 0x11c]
push ecx
push ebx
lea edx, [esp + 0x78]
push edx
push edi
push eax
call fcn.10046790
mov eax, dword [esp + 0x70]
inc eax
mov dword [esp + 0x70], eax
movzx eax, ax
add esp, 0x44
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x34], eax
jl 0x10049ce0
mov eax, dword [esp + 0x38]
xor edi, edi
mov ecx, dword [esp + 0x24]
inc ecx
mov dword [esp + 0x24], ecx
movzx ecx, cx
cmp ecx, eax
mov dword [esp + 0x28], ecx
jl 0x10049cc0
call dword [0x10104a68]
mov ecx, dword [ebx + 0xc]
and ecx, 7
mov eax, 8
sub eax, ecx
mov edx, dword [eax*4 + 0x10081adc]
push edx
mov edx, ebx
call fcn.10048480
fld dword [0x10081b08]
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0x14]
mov ecx, dword [esi + 0x9c]
add eax, eax
add eax, eax
add eax, eax
sub eax, dword [esp + 0x40]
add esp, 4
sub eax, dword [ebx + 0x1c]
add eax, dword [ebx + 0xc]
shr eax, 3
mov dword [ecx + 0x118], eax
fstp dword [esi + 0x240]
mov edx, dword [esi + 0x9c]
mov ecx, dword [esp + 0x67c]
mov dword [esi + 0x68], 2
mov dword [edx + 0x138], edi
mov eax, dword [esi + 0x9c]
pop edi
pop esi
pop ebx
mov dword [eax + 0x13c], 0xffffffff
xor ecx, esp
mov eax, 1
call fcn.1000c146
mov esp, ebp
pop ebp
ret