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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x5bb250]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
sub esp, 0x10
lea esi, [ebp + 8]
mov edi, esp
mov ebx, ecx
mov dword [esp + 0x40], ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004c5101
lea esi, [ebx + 0x154]
lea edi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
mov eax, dword [esi + 0x4b0]
lea ecx, [esi + 0x4a4]
add dword [ebp + 8], eax
mov eax, dword [esi + 0x4b4]
add dword [ebp + 0xc], eax
mov eax, dword [esi + 0x4b8]
sub dword [ebp + 0x10], eax
mov eax, dword [esi + 0x4bc]
sub dword [ebp + 0x14], eax
call fcn.004befe2
test eax, eax
jne 0x4e9f72
push eax
mov ecx, ebx
jmp 0x4ea47d
mov ecx, dword [esi + 0x4c8]
test ecx, ecx
je 0x4e9f96
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4e9f96
mov ecx, dword [esi + 0x4c8]
mov eax, dword [ecx]
call dword [eax + 0x58]
sub dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x4cc]
test ecx, ecx
je 0x4e9fba
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4e9fba
mov ecx, dword [esi + 0x4cc]
mov eax, dword [ecx]
call dword [eax + 0x60]
sub dword [ebp + 0x14], eax
mov ecx, dword [esi + 0x4d0]
test ecx, ecx
jle 0x4e9fd3
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
cdq
idiv ecx
mov dword [esi + 0x4d8], eax
cmp dword [esi + 0x4d8], 0
jne 0x4e9fe6
mov dword [esi + 0x4d8], 1
mov eax, dword [ebp + 0x10]
xor edi, edi
sub eax, dword [ebp + 8]
cdq
idiv dword [esi + 0x4d8]
mov ecx, dword [esi + 0x4cc]
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x4ea02d
mov edx, dword [ecx]
call dword [edx + 0xc8]
test al, al
je 0x4ea02d
mov ecx, dword [esi + 0x4cc]
call fcn.004db5f6
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 8]
add eax, ecx
cdq
idiv dword [esi + 0x4d8]
mov dword [esp + 0x48], eax
mov ebx, dword [ebp + 8]
and dword [esp + 0x24], edi
and dword [esp + 0x20], edi
mov ecx, dword [esi + 0x4c8]
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x34], ebx
test ecx, ecx
je 0x4ea06a
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4ea06a
mov ecx, dword [esi + 0x4c8]
call fcn.004db642
sub ebx, eax
mov dword [esp + 0x34], ebx
mov ecx, dword [esi + 0x4cc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x4c], ebx
test ecx, ecx
je 0x4ea09c
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4ea09c
mov ecx, dword [esi + 0x4cc]
call fcn.004db642
sub ebx, eax
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x10], ebx
xor edx, edx
lea ecx, [esi + 0x4a4]
mov dword [esp + 0x2c], edx
call fcn.004befe2
test eax, eax
jle 0x4ea478
push edx
call fcn.004bf005
mov ebx, eax
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0xc8]
test al, al
je 0x4ea45c
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xf4]
test al, al
je 0x4ea0f1
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [esp + 0x2c]
push edx
call dword [eax + 0x1a8]
jmp 0x4ea45c
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x50], eax
mov dword [esp + 0x14], eax
mov eax, ecx
cdq
idiv dword [esi + 0x4d8]
test edx, edx
jne 0x4ea2a0
mov edx, dword [esp + 0x2c]
mov edi, edx
mov dword [esp + 0x44], ecx
lea ecx, [esi + 0x4a4]
mov dword [esp + 0x28], edx
call fcn.004befe2
cmp edx, eax
jge 0x4ea2a0
push edi
call fcn.004bf005
mov edi, eax
mov ecx, edi
mov dword [esp + 0x40], edi
mov edx, dword [edi]
call dword [edx + 0xc8]
test al, al
je 0x4ea284
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xf4]
test al, al
jne 0x4ea284
mov eax, dword [edi]
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call dword [eax + 0x48]
mov edi, dword [esp + 0x14]
sub edi, dword [esp + 0x6c]
sub edi, dword [esp + 0x64]
sub edi, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x20]
je 0x4ea1a1
inc eax
cdq
idiv dword [esi + 0x4d8]
test edx, edx
je 0x4ea1a1
sub edi, dword [esi + 0x4c0]
jmp 0x4ea1b0
mov eax, dword [esi + 0x4c0]
cdq
sub eax, edx
sar eax, 1
neg eax
add edi, eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x68]
cmp edi, eax
jge 0x4ea1c4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x68]
mov edi, eax
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x70]
cmp edi, eax
jle 0x4ea1d8
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
mov edi, eax
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x38]
push 0x270f
push edi
push edx
mov eax, dword [ecx]
call dword [eax + 0x114]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x68]
cmp dword [esp + 0x38], eax
jge 0x4ea207
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x68]
mov dword [esp + 0x38], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
cmp dword [esp + 0x38], eax
jle 0x4ea21f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
cmp dword [esp + 0x3c], eax
jge 0x4ea237
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x80]
mov edi, dword [esp + 0x3c]
cmp edi, eax
jle 0x4ea259
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x80]
mov edi, eax
mov dword [esp + 0x3c], edi
mov eax, dword [esp + 0x70]
add eax, dword [esp + 0x68]
add eax, edi
cmp dword [esp + 0x24], eax
cmovg eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x44], eax
cdq
idiv dword [esi + 0x4d8]
test edx, edx
je 0x4ea2a0
mov edi, dword [esp + 0x28]
lea ecx, [esi + 0x4a4]
inc edi
mov dword [esp + 0x28], edi
call fcn.004befe2
cmp edi, eax
jl 0x4ea137
mov eax, dword [ebx]
lea ecx, [esp + 0x74]
push ecx
mov ecx, ebx
call dword [eax + 0x48]
mov eax, dword [esi + 0x4c0]
mov ecx, dword [esp + 0x7c]
mov esi, dword [esi + 0x4d8]
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x74]
sar edi, 1
add eax, edi
add ecx, edi
add dword [esp + 0x10], eax
sub dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
mov eax, ecx
cdq
idiv esi
test edx, edx
jne 0x4ea2e4
sub dword [esp + 0x10], edi
inc ecx
mov eax, ecx
mov dword [esp + 0x20], ecx
cdq
idiv esi
test edx, edx
jne 0x4ea2f6
add dword [esp + 0x14], edi
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
add eax, dword [esp + 0x34]
mov edx, dword [esp + 0x78]
mov edi, eax
add edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
sub edi, edx
sub esi, dword [esp + 0x10]
push edi
mov dword [esp + 0x2c], eax
mov eax, dword [ebx]
push esi
push ecx
mov ecx, ebx
mov dword [esp + 0x4c], edx
call dword [eax + 0x114]
mov eax, dword [esp + 0x18]
mov ecx, ebx
test eax, eax
cmove eax, esi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
test eax, eax
cmove eax, edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
call dword [eax + 0x68]
cmp dword [esp + 0x18], eax
jge 0x4ea35d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
cmp dword [esp + 0x18], eax
jle 0x4ea375
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x70]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
cmp dword [esp + 0x1c], eax
jge 0x4ea38d
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x78]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x80]
mov edi, dword [esp + 0x1c]
cmp edi, eax
jle 0x4ea3af
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x80]
mov edi, eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x54]
sub eax, dword [esp + 0x18]
sub esp, 0x10
add eax, dword [esp + 0x20]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x38]
sub eax, edi
sar ecx, 1
add eax, dword [esp + 0x50]
cdq
sub eax, edx
mov dword [esp + 0x64], ecx
add ecx, dword [esp + 0x28]
sar eax, 1
mov dword [esp + 0x68], eax
add eax, edi
mov dword [esp + 0x6c], ecx
mov edi, esp
mov dword [esp + 0x70], eax
mov ecx, ebx
mov eax, dword [ebx]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x34]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
cdq
idiv dword [esi + 0x4d8]
test edx, edx
jne 0x4ea42a
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x4c0]
add eax, dword [esp + 0x24]
add dword [esp + 0x34], eax
and dword [esp + 0x24], edx
jmp 0x4ea432
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x28]
sub edi, dword [ebp + 0xc]
mov ecx, dword [esi + 0x4c8]
test ecx, ecx
je 0x4ea45c
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4ea45c
mov ecx, dword [esi + 0x4c8]
call fcn.004db642
add edi, eax
mov edx, dword [esp + 0x2c]
lea ecx, [esi + 0x4a4]
inc edx
mov dword [esp + 0x2c], edx
call fcn.004befe2
cmp edx, eax
jl 0x4ea0b5
mov ecx, dword [esp + 0x30]
push edi
mov eax, dword [esi]
lea esi, [ebp + 8]
push 0
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1ac]
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret 0x10