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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
push ebx
push esi
push edi
push dword [ebp + 0x18]
lea esi, [ebp + 8]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, ecx
movsd dword es:[edi], dword [esi]
call fcn.0045dfe2
mov eax, dword [ebx + 0x668]
mov ecx, dword [ebx + 0x688]
lea esi, [ebx + 0x174]
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
mov eax, dword [ebx + 0x66c]
add dword [ebp + 0xc], eax
mov eax, dword [ebx + 0x670]
sub dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x674]
sub dword [ebp + 0x14], eax
test ecx, ecx
je 0x4802bd
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x4802bd
mov ecx, dword [ebx + 0x688]
mov eax, dword [ecx]
call dword [eax + 0x7c]
sub dword [ebp + 0x10], eax
mov ecx, dword [ebx + 0x68c]
test ecx, ecx
je 0x4802e4
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x4802e4
mov ecx, dword [ebx + 0x68c]
mov eax, dword [ecx]
call dword [eax + 0x84]
sub dword [ebp + 0x14], eax
cmp dword [ebx + 0x660], 0
jne 0x4802f6
push 0
push 0
jmp 0x4809d3
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
sub edi, dword [ebp + 8]
sub esi, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x68c]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], esi
test ecx, ecx
je 0x480330
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x480330
mov eax, dword [ebx + 0x68c]
add edi, dword [eax + 0x65c]
mov dword [esp + 0x4c], edi
mov ecx, dword [ebx + 0x688]
test ecx, ecx
je 0x480356
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x480356
mov eax, dword [ebx + 0x688]
add esi, dword [eax + 0x65c]
mov dword [esp + 0x50], esi
xor eax, eax
cmp dword [ebx + 0x660], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
jle 0x480555
mov eax, dword [ebx + 0x65c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xdc]
test al, al
je 0x480541
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x108]
test al, al
jne 0x480541
mov eax, dword [esi]
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x50]
push ecx
mov ecx, esi
mov dword [esp + 0x34], edi
call dword [eax + 0x64]
sub edi, dword [esp + 0x44]
mov eax, dword [esi]
sub edi, dword [esp + 0x3c]
mov ecx, esi
mov dword [esp + 0x30], edi
call dword [eax + 0x7c]
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x84]
cmp dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
jg 0x4803fb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], 0
jg 0x480410
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x2c], eax
jle 0x48041e
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x20]
cmp edi, eax
jle 0x48042a
mov dword [esp + 0x30], eax
and dword [esp + 0xc], 0
xor eax, eax
lea edi, [esp + 0x10]
stosd dword es:[edi], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x7c]
test eax, eax
mov eax, dword [esi]
jne 0x480453
inc dword [esp + 0x28]
mov ecx, esi
call dword [eax + 0x84]
mov edi, eax
jmp 0x4804b7
push dword [esp + 0x30]
lea ecx, [esp + 0x68]
push dword [esp + 0x30]
push ecx
mov ecx, esi
call dword [eax + 0x134]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x48047b
inc dword [esp + 0x28]
jmp 0x4804b7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
cmp dword [esp + 0xc], eax
jge 0x480499
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
cmp dword [esp + 0xc], eax
jle 0x4804b7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
lea ecx, [esp + 0x70]
push ecx
mov ecx, esi
call dword [eax + 0x64]
add eax, 8
lea ecx, [esp + 0x80]
mov dword [esp + 0x34], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x64]
mov eax, dword [eax]
add eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
add eax, dword [ecx]
add dword [esp + 0x14], eax
test edi, edi
jg 0x4804ef
xor edi, edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
cmp edi, eax
jge 0x480509
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
cmp edi, eax
jle 0x480523
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov edi, eax
mov eax, dword [esp + 0x44]
add edi, eax
mov eax, dword [esp + 0x3c]
add eax, edi
cmp dword [esp + 0x48], eax
jg 0x480539
mov dword [esp + 0x48], eax
inc dword [esp + 0x18]
mov edi, dword [esp + 0x4c]
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebx + 0x660]
jl 0x480378
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x678]
dec eax
imul ecx, eax
add dword [esp + 0x14], ecx
xor ecx, ecx
cmp dword [esp + 0x28], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x60], ecx
jle 0x480592
mov eax, edi
sub eax, dword [esp + 0x14]
mov dword [esp + 0x60], ecx
cdq
idiv dword [esp + 0x28]
cmp eax, ecx
jl 0x480592
mov dword [esp + 0x60], eax
mov ecx, dword [ebx + 0x68c]
mov esi, dword [ebp + 8]
mov dword [esp + 0x64], edi
mov dword [esp + 0x18], esi
test ecx, ecx
je 0x4805c3
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x4805c3
mov eax, dword [ebx + 0x68c]
sub esi, dword [eax + 0x660]
mov dword [esp + 0x18], esi
mov ecx, dword [esp + 0x14]
xor eax, eax
cmp dword [ebx + 0x660], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jle 0x4809bf
mov eax, dword [ebx + 0x65c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x58], esi
call dword [eax + 0xdc]
test al, al
je 0x4809ab
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x108]
test al, al
je 0x480629
push dword [esp + 0x1c]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1dc]
jmp 0x4809ab
mov eax, dword [esi]
inc dword [esp + 0x5c]
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call dword [eax + 0x64]
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x38]
mov edi, dword [esp + 0x50]
mov dword [esp + 0x30], edi
sub edi, dword [esp + 0x44]
mov dword [esp + 0x64], eax
sub edi, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x7c]
mov dword [esp + 0x24], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x84]
cmp dword [esp + 0x24], 0
mov dword [esp + 0x20], eax
jg 0x480687
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x20], 0
jg 0x48069c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x2c], eax
jle 0x4806aa
mov dword [esp + 0x2c], eax
cmp edi, dword [esp + 0x20]
jle 0x4806b4
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
add ecx, eax
sub dword [esp + 0x14], ecx
cmp dword [esp + 0x5c], 1
jle 0x4806d3
mov eax, dword [ebx + 0x678]
sub dword [esp + 0x14], eax
mov eax, dword [esi]
push edi
push dword [esp + 0x30]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call dword [eax + 0x134]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x7c]
test eax, eax
je 0x48073f
cmp dword [esp + 0xc], 0
je 0x48073f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
cmp dword [esp + 0xc], eax
jge 0x480717
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
cmp dword [esp + 0xc], eax
jle 0x480735
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
sub dword [esp + 0x14], eax
jmp 0x4807aa
mov eax, dword [esp + 0x60]
inc dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x28]
jne 0x48076e
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x40]
sub eax, dword [esp + 0x14]
jns 0x48076a
and dword [esp + 0xc], 0
jmp 0x48076e
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
cmp dword [esp + 0xc], eax
jge 0x48078c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
cmp dword [esp + 0xc], eax
jle 0x4807aa
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x94]
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa4]
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4807ce
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
test eax, eax
jge 0x4807d6
xor eax, eax
mov dword [esp + 0x10], eax
cmp eax, edi
jle 0x4807de
mov dword [esp + 0x10], edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
cmp dword [esp + 0x10], eax
jge 0x4807fc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x9c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x170]
cmp eax, 4
jne 0x48089c
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add eax, ecx
mov ecx, dword [ebx + 0x688]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
test ecx, ecx
je 0x48084d
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x48084d
mov ecx, dword [ebx + 0x688]
mov eax, dword [ecx + 0x65c]
cdq
sub eax, edx
sar eax, 1
sub eax, dword [ecx + 0x660]
add esi, eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x90], eax
mov eax, edi
cdq
sub eax, edx
mov edx, eax
sar edx, 1
mov eax, esi
sub eax, edx
mov edx, dword [esp + 0xc]
add edx, ecx
add edx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
add eax, edi
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
lea esi, [esp + 0x90]
jmp 0x480969
mov ecx, dword [ebx + 0x688]
cmp eax, 8
jne 0x480914
mov esi, dword [ebp + 0x14]
test ecx, ecx
je 0x4808ce
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x4808ce
mov eax, dword [ebx + 0x688]
mov ecx, dword [eax + 0x65c]
sub ecx, dword [eax + 0x660]
add esi, ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
lea edx, [eax + ecx]
mov dword [esp + 0x80], edx
mov edx, esi
sub edx, dword [esp + 0x10]
sub edx, dword [esp + 0x44]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0xc]
add edx, eax
add edx, ecx
sub esi, dword [esp + 0x44]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], esi
lea esi, [esp + 0x80]
jmp 0x480969
mov esi, dword [ebp + 0xc]
test ecx, ecx
je 0x480933
mov eax, dword [ecx]
call dword [eax + 0xdc]
test al, al
je 0x480933
mov eax, dword [ebx + 0x688]
sub esi, dword [eax + 0x660]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x18]
lea ecx, [eax + edx]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x3c]
lea edi, [esi + ecx]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0xc]
add edi, eax
mov eax, dword [esp + 0x10]
add esi, eax
add edi, edx
add esi, ecx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], edi
lea esi, [esp + 0x70]
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
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 + 0x4c]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov edx, dword [ebx + 0x678]
lea esi, [eax + ecx]
add esi, dword [esp + 0x38]
add esi, edx
add dword [esp + 0x18], esi
lea esi, [eax + ecx]
add esi, dword [esp + 0x38]
add eax, ecx
add dword [esp + 0x34], esi
add eax, edx
sub dword [esp + 0x64], eax
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebx + 0x660]
jl 0x4805e5
mov ecx, dword [ebx + 0x678]
imul ecx, dword [esp + 0x6c]
push dword [esp + 0x48]
add ecx, dword [esp + 0x38]
push ecx
mov eax, dword [ebx]
sub esp, 0x10
mov edi, esp
lea esi, [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call dword [eax + 0x1e0]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14