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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x5bd250]
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.004c524f
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.004bf132
test eax, eax
jne 0x4ea0c4
push eax
mov ecx, ebx
jmp 0x4ea5cf
mov ecx, dword [esi + 0x4c8]
test ecx, ecx
je 0x4ea0e8
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4ea0e8
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 0x4ea10c
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4ea10c
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 0x4ea125
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
cdq
idiv ecx
mov dword [esi + 0x4d8], eax
cmp dword [esi + 0x4d8], 0
jne 0x4ea138
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 0x4ea17f
mov edx, dword [ecx]
call dword [edx + 0xc8]
test al, al
je 0x4ea17f
mov ecx, dword [esi + 0x4cc]
call fcn.004db745
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 0x4ea1bc
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4ea1bc
mov ecx, dword [esi + 0x4c8]
call fcn.004db791
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 0x4ea1ee
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4ea1ee
mov ecx, dword [esi + 0x4cc]
call fcn.004db791
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.004bf132
test eax, eax
jle 0x4ea5ca
push edx
call fcn.004bf155
mov ebx, eax
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0xc8]
test al, al
je 0x4ea5ae
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0xf4]
test al, al
je 0x4ea243
mov eax, dword [esi]
mov ecx, esi
mov edx, dword [esp + 0x2c]
push edx
call dword [eax + 0x1a8]
jmp 0x4ea5ae
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 0x4ea3f2
mov edx, dword [esp + 0x2c]
mov edi, edx
mov dword [esp + 0x44], ecx
lea ecx, [esi + 0x4a4]
mov dword [esp + 0x28], edx
call fcn.004bf132
cmp edx, eax
jge 0x4ea3f2
push edi
call fcn.004bf155
mov edi, eax
mov ecx, edi
mov dword [esp + 0x40], edi
mov edx, dword [edi]
call dword [edx + 0xc8]
test al, al
je 0x4ea3d6
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0xf4]
test al, al
jne 0x4ea3d6
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 0x4ea2f3
inc eax
cdq
idiv dword [esi + 0x4d8]
test edx, edx
je 0x4ea2f3
sub edi, dword [esi + 0x4c0]
jmp 0x4ea302
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 0x4ea316
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 0x4ea32a
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 0x4ea359
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 0x4ea371
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 0x4ea389
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 0x4ea3ab
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 0x4ea3f2
mov edi, dword [esp + 0x28]
lea ecx, [esi + 0x4a4]
inc edi
mov dword [esp + 0x28], edi
call fcn.004bf132
cmp edi, eax
jl 0x4ea289
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 0x4ea436
sub dword [esp + 0x10], edi
inc ecx
mov eax, ecx
mov dword [esp + 0x20], ecx
cdq
idiv esi
test edx, edx
jne 0x4ea448
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 0x4ea4af
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 0x4ea4c7
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 0x4ea4df
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 0x4ea501
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 0x4ea57c
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 0x4ea584
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 0x4ea5ae
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x4ea5ae
mov ecx, dword [esi + 0x4c8]
call fcn.004db791
add edi, eax
mov edx, dword [esp + 0x2c]
lea ecx, [esi + 0x4a4]
inc edx
mov dword [esp + 0x2c], edx
call fcn.004bf132
cmp edx, eax
jl 0x4ea207
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.0053f9bc
mov esp, ebp
pop ebp
ret 0x10