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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff60
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x2c4]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c0]
mov dword [esp + 8], eax
lea eax, [ebx + 0x2b0]
call fcn.004c3098
sub eax, dword [ebx + 0x2c8]
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x2b0]
call fcn.004c30b4
sub eax, dword [ebx + 0x2cc]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x60]
mov eax, ebx
call fcn.004468a4
mov eax, dword [esp + 0x6c]
add eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x74]
push eax
mov ecx, dword [esp + 0x70]
add ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x6c]
sub edx, dword [esp + 0xc]
mov eax, dword [esp + 0x68]
sub eax, dword [esp + 0x10]
call fcn.00419a8c
lea eax, [esp + 0x70]
call fcn.004c3098
mov esi, eax
lea eax, [ebx + 0x2b0]
call fcn.004c3098
sub esi, eax
mov dword [esp + 0x30], esi
lea eax, [esp + 0x70]
call fcn.004c30b4
mov esi, eax
lea eax, [ebx + 0x2b0]
call fcn.004c30b4
sub esi, eax
mov dword [esp + 0x34], esi
mov eax, dword [ebx + 0x320]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x324]
mov dword [esp + 0x3c], eax
lea ecx, [esp + 0x40]
mov eax, dword [ebx + 0x328]
add eax, dword [esp + 0x30]
mov edx, dword [ebx + 0x32c]
call fcn.00419a64
lea ecx, [esp + 0x48]
mov edx, dword [ebx + 0x334]
add edx, dword [esp + 0x34]
mov eax, dword [ebx + 0x330]
call fcn.00419a64
lea ecx, [esp + 0x50]
mov edx, dword [ebx + 0x33c]
add edx, dword [esp + 0x34]
mov eax, dword [ebx + 0x338]
add eax, dword [esp + 0x30]
call fcn.00419a64
lea eax, [ebx + 0x310]
call fcn.004c2fa8
test al, al
jne 0x4f4885
cmp byte [ebx + 0x226], 2
jne 0x4f46cf
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x2c], eax
jmp 0x4f4740
cmp byte [ebx + 0x226], 3
jne 0x4f46fa
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x48]
sub eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x2c], eax
jmp 0x4f4740
cmp byte [ebx + 0x226], 0
jne 0x4f4720
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x28], eax
jmp 0x4f4740
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x4c]
sub eax, dword [esp + 0x7c]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x28], eax
lea eax, [ebx + 0x310]
call fcn.004c3098
mov esi, eax
lea eax, [ebx + 0x310]
call fcn.004c30b4
mov edi, eax
mov eax, dword [esp + 0x28]
cdq
idiv esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
cdq
idiv edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4f4885
inc eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x4f4877
inc eax
mov dword [esp + 0x5c], eax
xor ebp, ebp
mov eax, dword [esp + 0x1c]
imul esi
add eax, esi
cmp eax, dword [esp + 0x28]
jle 0x4f47b4
sub eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
jmp 0x4f47ba
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, ebp
imul edi
add eax, edi
cmp eax, dword [esp + 0x2c]
jle 0x4f47d0
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
jmp 0x4f47d6
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x31c]
sub eax, dword [esp + 0x34]
push eax
lea eax, [esp + 0x84]
push eax
mov ecx, dword [ebx + 0x318]
sub ecx, dword [esp + 0x38]
mov edx, dword [ebx + 0x314]
mov eax, dword [ebx + 0x310]
call fcn.00419a8c
lea eax, [esp + 0x80]
push eax
mov eax, ebp
imul edi
add eax, dword [esp + 0x1c]
add eax, edi
sub eax, dword [esp + 0x38]
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, dword [esp + 0x28]
imul ecx, esi
add ecx, dword [esp + 0x20]
add ecx, esi
sub ecx, dword [esp + 0x3c]
mov edx, ebp
imul edx, edi
add edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
imul eax, esi
add eax, dword [esp + 0x20]
call fcn.00419a8c
lea eax, [esp + 0x94]
push eax
mov eax, dword [ebx + 0x2ac]
call fcn.0042dfac
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.00428b08
inc ebp
dec dword [esp + 0x5c]
jne 0x4f479c
inc dword [esp + 0x1c]
dec dword [esp + 0x58]
jne 0x4f4789
mov esi, dword [ebx + 0x328]
sub esi, dword [ebx + 0x320]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
cdq
idiv esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4f4996
inc eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x1c], 0
mov ebp, dword [esp + 0x1c]
imul ebp, esi
mov eax, ebp
mov edi, dword [esp + 0x38]
add eax, edi
add eax, esi
cmp eax, dword [esp + 0x40]
jle 0x4f48e6
mov eax, dword [esp + 0x1c]
imul esi
add eax, dword [esp + 0x38]
add eax, esi
sub eax, dword [esp + 0x40]
mov dword [esp + 0x30], eax
jmp 0x4f48ec
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x2b4]
add eax, dword [esp + 4]
push eax
lea eax, [esp + 0x84]
push eax
mov ecx, dword [ebx + 0x2b0]
add ecx, dword [ebx + 0x328]
sub ecx, dword [esp + 0x38]
mov eax, dword [ebx + 0x2b0]
add eax, dword [ebx + 0x320]
mov edx, dword [ebx + 0x2b4]
call fcn.00419a8c
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x78]
add eax, dword [esp + 8]
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, dword [esp + 0x7c]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
imul esi
add ecx, eax
add ecx, esi
sub ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x7c]
add eax, edi
add eax, ebp
mov edx, dword [esp + 0x80]
call fcn.00419a8c
lea eax, [esp + 0x94]
push eax
mov eax, dword [ebx + 0x2ac]
call fcn.0042dfac
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.00428b08
inc dword [esp + 0x1c]
dec dword [esp + 0x58]
jne 0x4f48b9
mov esi, dword [ebx + 0x338]
sub esi, dword [ebx + 0x330]
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
cdq
idiv esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4f4aaa
inc eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x1c], 0
mov ebp, dword [esp + 0x1c]
imul ebp, esi
mov eax, ebp
mov edi, dword [esp + 0x48]
add eax, edi
add eax, esi
cmp eax, dword [esp + 0x50]
jle 0x4f49f7
mov eax, dword [esp + 0x1c]
imul esi
add eax, dword [esp + 0x48]
add eax, esi
sub eax, dword [esp + 0x50]
mov dword [esp + 0x30], eax
jmp 0x4f49fd
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x2bc]
push eax
lea eax, [esp + 0x84]
push eax
mov ecx, dword [ebx + 0x2b0]
add ecx, dword [ebx + 0x338]
sub ecx, dword [esp + 0x38]
mov edx, dword [ebx + 0x2bc]
sub edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x2b0]
add eax, dword [ebx + 0x330]
call fcn.00419a8c
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, dword [esp + 0x7c]
add ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x28]
imul esi
add ecx, eax
add ecx, esi
sub ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x7c]
add eax, edi
add eax, ebp
mov edx, dword [esp + 0x88]
sub edx, dword [esp + 0x1c]
call fcn.00419a8c
lea eax, [esp + 0x94]
push eax
mov eax, dword [ebx + 0x2ac]
call fcn.0042dfac
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.00428b08
inc dword [esp + 0x1c]
dec dword [esp + 0x58]
jne 0x4f49ca
mov esi, dword [esp + 8]
mov edi, dword [ebx + 0x334]
sub edi, dword [ebx + 0x324]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x3c]
cdq
idiv edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x4f4baf
inc eax
mov dword [esp + 0x58], eax
xor ebp, ebp
mov eax, ebp
imul edi
add eax, dword [esp + 0x3c]
add eax, edi
cmp eax, dword [esp + 0x4c]
jle 0x4f4b00
mov eax, ebp
imul edi
add eax, dword [esp + 0x3c]
add eax, edi
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x34], eax
jmp 0x4f4b06
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x2b4]
add eax, dword [ebx + 0x334]
sub eax, dword [esp + 0x34]
push eax
lea eax, [esp + 0x84]
push eax
mov ecx, dword [ebx + 0x2b0]
add ecx, esi
mov edx, dword [ebx + 0x2b4]
add edx, dword [ebx + 0x324]
mov eax, dword [ebx + 0x2b0]
call fcn.00419a8c
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x40]
mov edx, ebp
imul edx, edi
add eax, edx
add eax, edi
sub eax, dword [esp + 0x38]
push eax
lea eax, [esp + 0x98]
push eax
mov edx, dword [esp + 0x80]
add edx, dword [esp + 0x48]
mov eax, ebp
imul eax, edi
add edx, eax
mov ecx, dword [esp + 0x7c]
add ecx, esi
mov eax, dword [esp + 0x7c]
call fcn.00419a8c
lea eax, [esp + 0x94]
push eax
mov eax, dword [ebx + 0x2ac]
call fcn.0042dfac
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.00428b08
inc ebp
dec dword [esp + 0x58]
jne 0x4f4adc
mov esi, dword [esp + 0xc]
mov edi, dword [ebx + 0x33c]
sub edi, dword [ebx + 0x32c]
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x44]
cdq
idiv edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x4f4cba
inc eax
mov dword [esp + 0x58], eax
xor ebp, ebp
mov eax, ebp
imul edi
add eax, dword [esp + 0x44]
add eax, edi
cmp eax, dword [esp + 0x54]
jle 0x4f4c05
mov eax, ebp
imul edi
add eax, dword [esp + 0x44]
add eax, edi
sub eax, dword [esp + 0x54]
mov dword [esp + 0x34], eax
jmp 0x4f4c0b
xor eax, eax
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x2b4]
add eax, dword [ebx + 0x33c]
sub eax, dword [esp + 0x34]
push eax
lea eax, [esp + 0x84]
push eax
mov edx, dword [ebx + 0x2b4]
add edx, dword [ebx + 0x32c]
mov eax, dword [ebx + 0x2b8]
sub eax, esi
mov ecx, dword [ebx + 0x2b8]
call fcn.00419a8c
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x48]
mov edx, ebp
imul edx, edi
add eax, edx
add eax, edi
sub eax, dword [esp + 0x38]
push eax
lea eax, [esp + 0x98]
push eax
mov edx, dword [esp + 0x80]
add edx, dword [esp + 0x50]
mov eax, ebp
imul eax, edi
add edx, eax
mov eax, dword [esp + 0x84]
sub eax, esi
mov ecx, dword [esp + 0x84]
call fcn.00419a8c
lea eax, [esp + 0x94]
push eax
mov eax, dword [ebx + 0x2ac]
call fcn.0042dfac
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.00428b08
inc ebp
dec dword [esp + 0x58]
jne 0x4f4be1
mov eax, dword [ebx + 0x2b4]
add eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x84]
push eax
mov ecx, dword [ebx + 0x2b0]
add ecx, dword [esp + 0x40]
mov edx, dword [ebx + 0x2b4]
mov eax, dword [ebx + 0x2b0]
call fcn.00419a8c
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x78]
add eax, dword [ebx + 0x324]
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, dword [esp + 0x7c]
add ecx, dword [ebx + 0x320]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
call fcn.00419a8c
lea eax, [esp + 0x94]
push eax
mov eax, dword [ebx + 0x2ac]
call fcn.0042dfac
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.00428b08
mov eax, dword [ebx + 0x2b4]
add eax, dword [ebx + 0x32c]
push eax
lea eax, [esp + 0x84]
push eax
mov eax, dword [ebx + 0x2b0]
add eax, dword [ebx + 0x328]
mov ecx, dword [ebx + 0x2b8]
mov edx, dword [ebx + 0x2b4]
call fcn.00419a8c
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x48]
push eax
lea eax, [esp + 0x98]
push eax
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
call fcn.00419a8c
lea eax, [esp + 0x94]
push eax
mov eax, dword [ebx + 0x2ac]
call fcn.0042dfac
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.00428b08
mov eax, dword [ebx + 0x2bc]
push eax
lea eax, [esp + 0x84]
push eax
mov ecx, dword [ebx + 0x2b0]
add ecx, dword [ebx + 0x330]
mov edx, dword [ebx + 0x2b4]
add edx, dword [ebx + 0x334]
mov eax, dword [ebx + 0x2b0]
call fcn.00419a8c
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push eax
lea eax, [esp + 0x98]
push eax
mov ecx, dword [esp + 0x7c]
add ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x80]
add edx, dword [esp + 0x58]
mov eax, dword [esp + 0x7c]
call fcn.00419a8c
lea eax, [esp + 0x94]
push eax
mov eax, dword [ebx + 0x2ac]
call fcn.0042dfac
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.00428b08
mov eax, dword [ebx + 0x2bc]
push eax
lea eax, [esp + 0x84]
push eax
mov edx, dword [ebx + 0x2b4]
add edx, dword [ebx + 0x33c]
mov eax, dword [ebx + 0x2b0]
add eax, dword [ebx + 0x338]
mov ecx, dword [ebx + 0x2b8]
call fcn.00419a8c
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push eax
lea eax, [esp + 0x98]
push eax
mov edx, dword [esp + 0x80]
add edx, dword [esp + 0x60]
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x84]
call fcn.00419a8c
lea eax, [esp + 0x94]
push eax
mov eax, dword [ebx + 0x2ac]
call fcn.0042dfac
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.00428b08
add esp, 0xa0
pop ebp
pop edi
pop esi
pop ebx
ret