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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff64
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x29c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x298]
mov dword [esp + 8], eax
lea eax, [ebx + 0x288]
call fcn.00476454
sub eax, dword [ebx + 0x2a0]
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x288]
call fcn.00476470
sub eax, dword [ebx + 0x2a4]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x5c]
mov eax, ebx
call fcn.0048e2ac
mov eax, dword [esp + 0x68]
add eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x70]
push eax
mov ecx, dword [esp + 0x6c]
add ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0xc]
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x10]
call fcn.004158a0
lea eax, [esp + 0x6c]
call fcn.00476454
mov esi, eax
lea eax, [ebx + 0x288]
call fcn.00476454
sub esi, eax
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x6c]
call fcn.00476470
mov esi, eax
lea eax, [ebx + 0x288]
call fcn.00476470
sub esi, eax
mov dword [esp + 0x30], esi
mov eax, dword [ebx + 0x2e8]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x2ec]
mov dword [esp + 0x38], eax
lea ecx, [esp + 0x3c]
mov eax, dword [ebx + 0x2f0]
add eax, dword [esp + 0x2c]
mov edx, dword [ebx + 0x2f4]
call fcn.00415878
lea ecx, [esp + 0x44]
mov edx, dword [ebx + 0x2fc]
add edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x2f8]
call fcn.00415878
lea ecx, [esp + 0x4c]
mov edx, dword [ebx + 0x304]
add edx, dword [esp + 0x30]
mov eax, dword [ebx + 0x300]
add eax, dword [esp + 0x2c]
call fcn.00415878
lea eax, [ebx + 0x2d8]
call fcn.004763ac
test al, al
jne 0x4a624a
cmp byte [ebx + 0x226], 0
jne 0x4a60ee
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x28], eax
jmp 0x4a6101
mov eax, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x4c]
sub eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x2d8]
call fcn.00476454
mov esi, eax
lea eax, [ebx + 0x2d8]
call fcn.00476470
mov edi, eax
mov eax, dword [esp + 0x24]
cdq
idiv esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
cdq
idiv edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x4a624a
inc eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4a623c
inc eax
mov dword [esp + 0x58], eax
xor ebp, ebp
mov eax, dword [esp + 0x18]
imul esi
add eax, esi
cmp eax, dword [esp + 0x24]
jle 0x4a6184
mov eax, dword [esp + 0x18]
imul esi
add eax, esi
sub eax, dword [esp + 0x24]
mov dword [esp + 0x2c], eax
jmp 0x4a618a
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, ebp
imul edi
add eax, edi
cmp eax, dword [esp + 0x28]
jle 0x4a61a0
sub eax, dword [esp + 0x28]
mov dword [esp + 0x30], eax
jmp 0x4a61a6
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x2e4]
sub eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0x80]
push eax
mov ecx, dword [ebx + 0x2e0]
sub ecx, dword [esp + 0x34]
mov edx, dword [ebx + 0x2dc]
mov eax, dword [ebx + 0x2d8]
call fcn.004158a0
lea eax, [esp + 0x7c]
push eax
mov eax, ebp
imul edi
add eax, dword [esp + 0x18]
add eax, edi
sub eax, dword [esp + 0x34]
push eax
lea eax, [esp + 0x94]
push eax
mov ecx, dword [esp + 0x24]
imul ecx, esi
add ecx, esi
sub ecx, dword [esp + 0x38]
mov edx, ebp
imul edx, edi
add edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
imul eax, esi
call fcn.004158a0
lea eax, [esp + 0x90]
push eax
mov eax, dword [ebx + 0x284]
call fcn.004282e0
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.004231e0
inc ebp
dec dword [esp + 0x58]
jne 0x4a6164
inc dword [esp + 0x18]
dec dword [esp + 0x54]
jne 0x4a6151
mov esi, dword [ebx + 0x2f0]
sub esi, dword [ebx + 0x2e8]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
cdq
idiv esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x4a6355
inc eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x18], 0
mov ebp, dword [esp + 0x18]
imul ebp, esi
mov eax, ebp
mov edi, dword [esp + 0x34]
add eax, edi
add eax, esi
cmp eax, dword [esp + 0x3c]
jle 0x4a62ab
mov eax, dword [esp + 0x18]
imul esi
add eax, dword [esp + 0x34]
add eax, esi
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
jmp 0x4a62b1
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x28c]
add eax, dword [esp + 4]
push eax
lea eax, [esp + 0x80]
push eax
mov ecx, dword [ebx + 0x288]
add ecx, dword [ebx + 0x2f0]
sub ecx, dword [esp + 0x34]
mov eax, dword [ebx + 0x288]
add eax, dword [ebx + 0x2e8]
mov edx, dword [ebx + 0x28c]
call fcn.004158a0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x74]
add eax, dword [esp + 8]
push eax
lea eax, [esp + 0x94]
push eax
mov ecx, dword [esp + 0x78]
add ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x24]
imul esi
add ecx, eax
add ecx, esi
sub ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x78]
add eax, edi
add eax, ebp
mov edx, dword [esp + 0x7c]
call fcn.004158a0
lea eax, [esp + 0x90]
push eax
mov eax, dword [ebx + 0x284]
call fcn.004282e0
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.004231e0
inc dword [esp + 0x18]
dec dword [esp + 0x54]
jne 0x4a627e
mov esi, dword [ebx + 0x300]
sub esi, dword [ebx + 0x2f8]
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
cdq
idiv esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
test eax, eax
jl 0x4a6463
inc eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x18], 0
mov ebp, dword [esp + 0x18]
imul ebp, esi
mov eax, ebp
mov edi, dword [esp + 0x44]
add eax, edi
add eax, esi
cmp eax, dword [esp + 0x4c]
jle 0x4a63b6
mov eax, dword [esp + 0x18]
imul esi
add eax, dword [esp + 0x44]
add eax, esi
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
jmp 0x4a63bc
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x294]
push eax
lea eax, [esp + 0x80]
push eax
mov ecx, dword [ebx + 0x288]
add ecx, dword [ebx + 0x300]
sub ecx, dword [esp + 0x34]
mov edx, dword [ebx + 0x294]
sub edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x288]
add eax, dword [ebx + 0x2f8]
call fcn.004158a0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push eax
lea eax, [esp + 0x94]
push eax
mov ecx, dword [esp + 0x78]
add ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x24]
imul esi
add ecx, eax
add ecx, esi
sub ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x78]
add eax, edi
add eax, ebp
mov edx, dword [esp + 0x84]
sub edx, dword [esp + 0x1c]
call fcn.004158a0
lea eax, [esp + 0x90]
push eax
mov eax, dword [ebx + 0x284]
call fcn.004282e0
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.004231e0
inc dword [esp + 0x18]
dec dword [esp + 0x54]
jne 0x4a6389
mov esi, dword [esp + 8]
mov edi, dword [ebx + 0x2fc]
sub edi, dword [ebx + 0x2ec]
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x38]
cdq
idiv edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4a6562
inc eax
mov dword [esp + 0x54], eax
xor ebp, ebp
mov eax, ebp
imul edi
add eax, dword [esp + 0x38]
add eax, edi
cmp eax, dword [esp + 0x48]
jle 0x4a64b9
mov eax, ebp
imul edi
add eax, dword [esp + 0x38]
add eax, edi
sub eax, dword [esp + 0x48]
mov dword [esp + 0x30], eax
jmp 0x4a64bf
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x28c]
add eax, dword [ebx + 0x2fc]
sub eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0x80]
push eax
mov ecx, dword [ebx + 0x288]
add ecx, esi
mov edx, dword [ebx + 0x28c]
add edx, dword [ebx + 0x2ec]
mov eax, dword [ebx + 0x288]
call fcn.004158a0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x3c]
mov edx, ebp
imul edx, edi
add eax, edx
add eax, edi
sub eax, dword [esp + 0x34]
push eax
lea eax, [esp + 0x94]
push eax
mov edx, dword [esp + 0x7c]
add edx, dword [esp + 0x44]
mov eax, ebp
imul eax, edi
add edx, eax
mov ecx, dword [esp + 0x78]
add ecx, esi
mov eax, dword [esp + 0x78]
call fcn.004158a0
lea eax, [esp + 0x90]
push eax
mov eax, dword [ebx + 0x284]
call fcn.004282e0
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.004231e0
inc ebp
dec dword [esp + 0x54]
jne 0x4a6495
mov esi, dword [esp + 0xc]
mov edi, dword [ebx + 0x304]
sub edi, dword [ebx + 0x2f4]
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x40]
cdq
idiv edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4a6667
inc eax
mov dword [esp + 0x54], eax
xor ebp, ebp
mov eax, ebp
imul edi
add eax, dword [esp + 0x40]
add eax, edi
cmp eax, dword [esp + 0x50]
jle 0x4a65b8
mov eax, ebp
imul edi
add eax, dword [esp + 0x40]
add eax, edi
sub eax, dword [esp + 0x50]
mov dword [esp + 0x30], eax
jmp 0x4a65be
xor eax, eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x28c]
add eax, dword [ebx + 0x304]
sub eax, dword [esp + 0x30]
push eax
lea eax, [esp + 0x80]
push eax
mov edx, dword [ebx + 0x28c]
add edx, dword [ebx + 0x2f4]
mov eax, dword [ebx + 0x290]
sub eax, esi
mov ecx, dword [ebx + 0x290]
call fcn.004158a0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x44]
mov edx, ebp
imul edx, edi
add eax, edx
add eax, edi
sub eax, dword [esp + 0x34]
push eax
lea eax, [esp + 0x94]
push eax
mov edx, dword [esp + 0x7c]
add edx, dword [esp + 0x4c]
mov eax, ebp
imul eax, edi
add edx, eax
mov eax, dword [esp + 0x80]
sub eax, esi
mov ecx, dword [esp + 0x80]
call fcn.004158a0
lea eax, [esp + 0x90]
push eax
mov eax, dword [ebx + 0x284]
call fcn.004282e0
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.004231e0
inc ebp
dec dword [esp + 0x54]
jne 0x4a6594
mov eax, dword [ebx + 0x28c]
add eax, dword [esp + 0x38]
push eax
lea eax, [esp + 0x80]
push eax
mov ecx, dword [ebx + 0x288]
add ecx, dword [esp + 0x3c]
mov edx, dword [ebx + 0x28c]
mov eax, dword [ebx + 0x288]
call fcn.004158a0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x74]
add eax, dword [ebx + 0x2ec]
push eax
lea eax, [esp + 0x94]
push eax
mov ecx, dword [esp + 0x78]
add ecx, dword [ebx + 0x2e8]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
call fcn.004158a0
lea eax, [esp + 0x90]
push eax
mov eax, dword [ebx + 0x284]
call fcn.004282e0
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.004231e0
mov eax, dword [ebx + 0x28c]
add eax, dword [ebx + 0x2f4]
push eax
lea eax, [esp + 0x80]
push eax
mov eax, dword [ebx + 0x288]
add eax, dword [ebx + 0x2f0]
mov ecx, dword [ebx + 0x290]
mov edx, dword [ebx + 0x28c]
call fcn.004158a0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
call fcn.004158a0
lea eax, [esp + 0x90]
push eax
mov eax, dword [ebx + 0x284]
call fcn.004282e0
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.004231e0
mov eax, dword [ebx + 0x294]
push eax
lea eax, [esp + 0x80]
push eax
mov ecx, dword [ebx + 0x288]
add ecx, dword [ebx + 0x2f8]
mov edx, dword [ebx + 0x28c]
add edx, dword [ebx + 0x2fc]
mov eax, dword [ebx + 0x288]
call fcn.004158a0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push eax
lea eax, [esp + 0x94]
push eax
mov ecx, dword [esp + 0x78]
add ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x7c]
add edx, dword [esp + 0x54]
mov eax, dword [esp + 0x78]
call fcn.004158a0
lea eax, [esp + 0x90]
push eax
mov eax, dword [ebx + 0x284]
call fcn.004282e0
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.004231e0
mov eax, dword [ebx + 0x294]
push eax
lea eax, [esp + 0x80]
push eax
mov edx, dword [ebx + 0x28c]
add edx, dword [ebx + 0x304]
mov eax, dword [ebx + 0x288]
add eax, dword [ebx + 0x300]
mov ecx, dword [ebx + 0x290]
call fcn.004158a0
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push eax
lea eax, [esp + 0x94]
push eax
mov edx, dword [esp + 0x7c]
add edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x80]
call fcn.004158a0
lea eax, [esp + 0x90]
push eax
mov eax, dword [ebx + 0x284]
call fcn.004282e0
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.004231e0
add esp, 0x9c
pop ebp
pop edi
pop esi
pop ebx
ret