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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4c0760]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
mov ebx, ecx
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 fcn.004270a8
mov eax, dword [ebx + 0x640]
lea esi, [ebx + 0x158]
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]
add dword [ebp + 8], eax
xor esi, esi
mov eax, dword [ebx + 0x644]
add dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x648]
sub dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x64c]
sub dword [ebp + 0x14], eax
cmp dword [ebx + 0x638], esi
jne 0x454257
push esi
push esi
jmp 0x45475f
mov ecx, dword [ebx + 0x658]
test ecx, ecx
je 0x45427b
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x45427b
mov ecx, dword [ebx + 0x658]
mov eax, dword [ecx]
call dword [eax + 0x60]
sub dword [ebp + 0x10], eax
mov ecx, dword [ebx + 0x65c]
test ecx, ecx
je 0x45429f
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x45429f
mov ecx, dword [ebx + 0x65c]
mov eax, dword [ecx]
call dword [eax + 0x68]
sub dword [ebp + 0x14], eax
mov ecx, dword [ebx + 0x668]
test ecx, ecx
jle 0x4542b8
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp + 8]
cdq
idiv ecx
mov dword [ebx + 0x670], eax
cmp dword [ebx + 0x670], esi
jne 0x4542ca
mov dword [ebx + 0x670], 1
mov eax, dword [ebp + 0x10]
mov edi, esi
sub eax, dword [ebp + 8]
cdq
idiv dword [ebx + 0x670]
mov ecx, dword [ebx + 0x65c]
mov dword [esp + 0x44], eax
test ecx, ecx
je 0x454310
mov edx, dword [ecx]
call dword [edx + 0xc8]
test al, al
je 0x454310
mov eax, dword [ebx + 0x65c]
mov eax, dword [eax + 0x634]
sub eax, dword [ebp + 8]
add eax, dword [ebp + 0x10]
cdq
idiv dword [ebx + 0x670]
mov dword [esp + 0x44], eax
mov ecx, dword [ebx + 0x658]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x10], esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x34], esi
test ecx, ecx
je 0x45434c
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x45434c
mov eax, dword [ebx + 0x658]
sub esi, dword [eax + 0x638]
mov dword [esp + 0x34], esi
mov ecx, dword [ebx + 0x65c]
mov esi, dword [ebp + 8]
mov dword [esp + 0x48], esi
test ecx, ecx
je 0x45437d
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x45437d
mov eax, dword [ebx + 0x65c]
sub esi, dword [eax + 0x638]
mov dword [esp + 0x48], esi
mov dword [esp + 0x10], esi
xor ecx, ecx
mov dword [esp + 0x30], ecx
cmp dword [ebx + 0x638], ecx
jle 0x45475c
mov eax, dword [ebx + 0x634]
mov esi, dword [eax + ecx*4]
mov ecx, esi
mov dword [esp + 0x40], esi
mov eax, dword [esi]
call dword [eax + 0xc8]
test al, al
je 0x454747
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
test al, al
je 0x4543d0
mov eax, dword [ebx]
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, ebx
call dword [eax + 0x1a8]
jmp 0x454747
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x44]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x50], eax
mov dword [esp + 0x1c], eax
mov eax, edi
cdq
idiv dword [ebx + 0x670]
test edx, edx
jne 0x45457c
mov ecx, dword [esp + 0x30]
mov edx, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ecx
cmp ecx, dword [ebx + 0x638]
jge 0x45457c
mov eax, dword [ebx + 0x634]
mov edi, dword [eax + edx*4]
mov ecx, edi
mov dword [esp + 0x4c], edi
mov eax, dword [edi]
call dword [eax + 0xc8]
test al, al
je 0x454563
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xf4]
test al, al
jne 0x454563
mov eax, dword [edi]
lea ecx, [esp + 0x64]
push ecx
mov ecx, edi
call dword [eax + 0x50]
mov edi, dword [esp + 0x1c]
sub edi, dword [esp + 0x6c]
sub edi, dword [esp + 0x64]
sub edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x28]
je 0x45447a
inc eax
cdq
idiv dword [ebx + 0x670]
test edx, edx
je 0x45447a
sub edi, dword [ebx + 0x650]
jmp 0x454489
mov eax, dword [ebx + 0x650]
cdq
sub eax, edx
sar eax, 1
neg eax
add edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x70]
cmp edi, eax
jge 0x45449d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x70]
mov edi, eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x78]
cmp edi, eax
jle 0x4544b1
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
mov edi, eax
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x38]
push 0x270f
push edi
push edx
mov eax, dword [ecx]
call dword [eax + 0x114]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x70]
cmp dword [esp + 0x38], eax
jge 0x4544e0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
cmp dword [esp + 0x38], eax
jle 0x4544f8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
mov dword [esp + 0x38], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
cmp dword [esp + 0x3c], eax
jge 0x454516
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x80]
mov dword [esp + 0x3c], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x88]
mov edi, dword [esp + 0x3c]
cmp edi, eax
jle 0x454538
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x88]
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 + 0x20]
inc eax
mov dword [esp + 0x20], eax
cdq
idiv dword [ebx + 0x670]
test edx, edx
je 0x454578
mov edx, dword [esp + 0x2c]
inc edx
mov dword [esp + 0x2c], edx
cmp edx, dword [ebx + 0x638]
jl 0x45440f
mov edi, dword [esp + 0x28]
mov eax, dword [esi]
lea ecx, [esp + 0x74]
push ecx
mov ecx, esi
call dword [eax + 0x50]
mov eax, dword [ebx + 0x650]
cdq
sub eax, edx
mov ecx, dword [esp + 0x7c]
mov esi, eax
mov eax, dword [esp + 0x74]
sar esi, 1
add eax, esi
add ecx, esi
add dword [esp + 0x10], eax
mov eax, edi
cdq
idiv dword [ebx + 0x670]
sub dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
test edx, edx
jne 0x4545c0
sub ecx, esi
mov dword [esp + 0x10], ecx
inc edi
mov eax, edi
mov dword [esp + 0x28], edi
cdq
idiv dword [ebx + 0x670]
test edx, edx
jne 0x4545d6
add dword [esp + 0x1c], esi
mov eax, dword [esp + 0x78]
lea edx, [esp + 0x14]
add eax, dword [esp + 0x34]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
sub esi, ecx
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
mov edi, eax
sub edi, dword [esp + 0x2c]
push edi
mov dword [esp + 0x24], eax
mov eax, dword [ecx]
push esi
push edx
call dword [eax + 0x114]
mov eax, dword [esp + 0x14]
test eax, eax
cmove eax, esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
cmove eax, edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x70]
cmp dword [esp + 0x14], eax
jge 0x454643
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
cmp dword [esp + 0x14], eax
jle 0x45465b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
cmp dword [esp + 0x18], eax
jge 0x454679
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x80]
mov dword [esp + 0x18], eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x88]
cmp dword [esp + 0x18], eax
jle 0x454697
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x88]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0x54]
sub eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
add eax, dword [esp + 0x2c]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
mov dword [esp + 0x58], eax
add eax, dword [esp + 0x18]
mov dword [esp + 0x60], eax
mov eax, dword [edi]
mov dword [esp + 0x54], ecx
add ecx, dword [esp + 0x14]
push 0
sub esp, 0x10
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x54]
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 + 0x38]
mov eax, dword [esp + 0x28]
cdq
idiv dword [ebx + 0x670]
test edx, edx
jne 0x454716
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x650]
add eax, dword [esp + 0x24]
add dword [esp + 0x34], eax
and dword [esp + 0x24], edx
jmp 0x45471e
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x20]
sub edi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x658]
test ecx, ecx
je 0x454747
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x454747
mov eax, dword [ebx + 0x658]
add edi, dword [eax + 0x638]
mov ecx, dword [esp + 0x30]
inc ecx
mov dword [esp + 0x30], ecx
cmp ecx, dword [ebx + 0x638]
jl 0x45438f
push edi
push 0
mov eax, dword [ebx]
lea esi, [ebp + 8]
sub esp, 0x10
mov ecx, ebx
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.0045fbcc
mov esp, ebp
pop ebp
ret 0x14