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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff58
mov dword [esp], edx
mov ebx, eax
mov eax, dword [ebx + 0x284]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x280]
mov dword [esp + 8], eax
lea eax, [ebx + 0x270]
call fcn.0046c584
sub eax, dword [ebx + 0x288]
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x270]
call fcn.0046c5a4
sub eax, dword [ebx + 0x28c]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x68]
mov eax, ebx
call fcn.0048ef44
mov eax, dword [esp + 0x74]
add eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x7c]
push eax
mov ecx, dword [esp + 0x78]
add ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x74]
sub edx, dword [esp + 0xc]
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x10]
call fcn.0040fa08
lea eax, [esp + 0x78]
call fcn.0046c584
mov esi, eax
lea eax, [ebx + 0x270]
call fcn.0046c584
sub esi, eax
mov dword [esp + 0x38], esi
lea eax, [esp + 0x78]
call fcn.0046c5a4
mov esi, eax
lea eax, [ebx + 0x270]
call fcn.0046c5a4
sub esi, eax
mov dword [esp + 0x3c], esi
mov eax, dword [ebx + 0x2e0]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x2e4]
mov dword [esp + 0x44], eax
lea ecx, [esp + 0x48]
mov eax, dword [ebx + 0x2e8]
add eax, dword [esp + 0x38]
mov edx, dword [ebx + 0x2ec]
call fcn.0040f9f0
lea ecx, [esp + 0x50]
mov edx, dword [ebx + 0x2f4]
add edx, dword [esp + 0x3c]
mov eax, dword [ebx + 0x2f0]
call fcn.0040f9f0
lea ecx, [esp + 0x58]
mov edx, dword [ebx + 0x2fc]
add edx, dword [esp + 0x3c]
mov eax, dword [ebx + 0x2f8]
add eax, dword [esp + 0x38]
call fcn.0040f9f0
cmp dword [ebx + 0x328], 0xffffffff
je 0x4b531f
mov eax, dword [ebx + 0x254]
mov eax, dword [eax + 0x80]
mov edx, dword [ebx + 0x328]
call fcn.00410670
mov esi, eax
cmp dword [ebx + 0x38], 0
jle 0x4b5d21
cmp dword [ebx + 0x3c], 0
jle 0x4b5d21
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
mov eax, dword [ebx + 0x38]
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x20], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x3c]
pop edx
mov ecx, edx
cdq
idiv ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4b5d21
inc eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x4b5310
inc eax
mov dword [esp + 0x64], eax
xor ebp, ebp
push esi
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x20]
imul ebp
push eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov edx, eax
imul edx, dword [esp + 0x24]
mov eax, dword [esp + 8]
pop ecx
call fcn.0041a754
inc ebp
dec dword [esp + 0x64]
jne 0x4b52e6
inc dword [esp + 0x1c]
dec dword [esp + 0x60]
jne 0x4b52d7
jmp 0x4b5d21
lea eax, [ebx + 0x280]
call fcn.0046c584
mov esi, eax
lea eax, [ebx + 0x280]
call fcn.0046c5a4
mov edi, eax
lea eax, [esp + 0x78]
call fcn.0046c584
mov dword [esp + 0x28], eax
lea eax, [esp + 0x78]
call fcn.0046c5a4
mov dword [esp + 0x2c], 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 0x4b54a2
inc eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x4b5494
inc eax
mov dword [esp + 0x64], eax
xor ebp, ebp
mov eax, dword [esp + 0x1c]
imul esi
add eax, esi
cmp eax, dword [esp + 0x28]
jle 0x4b53ad
sub eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
jmp 0x4b53b3
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, ebp
imul edi
add eax, edi
cmp eax, dword [esp + 0x2c]
jle 0x4b53c9
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
jmp 0x4b53cf
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x274]
add eax, dword [ebx + 0x28c]
sub eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x8c]
push eax
mov ecx, dword [ebx + 0x270]
add ecx, dword [ebx + 0x288]
sub ecx, dword [esp + 0x40]
mov edx, dword [ebx + 0x274]
add edx, dword [ebx + 0x284]
mov eax, dword [ebx + 0x270]
add eax, dword [ebx + 0x280]
call fcn.0040fa08
lea eax, [esp + 0x88]
push eax
mov eax, ebp
imul edi
add eax, dword [esp + 0x80]
add eax, edi
sub eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0xa0]
push eax
mov ecx, dword [esp + 0x28]
imul ecx, esi
add ecx, dword [esp + 0x84]
add ecx, esi
sub ecx, dword [esp + 0x44]
mov edx, ebp
imul edx, edi
add edx, dword [esp + 0x88]
mov eax, dword [esp + 0x28]
imul eax, esi
add eax, dword [esp + 0x84]
call fcn.0040fa08
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.0041f240
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041a6cc
inc ebp
dec dword [esp + 0x64]
jne 0x4b5395
inc dword [esp + 0x1c]
dec dword [esp + 0x60]
jne 0x4b5382
lea eax, [ebx + 0x2d0]
call fcn.0046c404
test al, al
jne 0x4b569d
cmp byte [ebx + 0x20e], 2
jne 0x4b54db
xor eax, eax
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x34], eax
jmp 0x4b5558
cmp byte [ebx + 0x20e], 3
jne 0x4b550c
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x38]
sub eax, dword [esp + 0x80]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x34], eax
jmp 0x4b5558
cmp byte [ebx + 0x20e], 0
jne 0x4b5532
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x30], eax
jmp 0x4b5558
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x3c]
sub eax, dword [esp + 0x84]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x30], eax
lea eax, [ebx + 0x2d0]
call fcn.0046c584
mov esi, eax
lea eax, [ebx + 0x2d0]
call fcn.0046c5a4
mov edi, eax
mov eax, dword [esp + 0x30]
cdq
idiv esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
cdq
idiv edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4b569d
inc eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x4b568f
inc eax
mov dword [esp + 0x64], eax
xor ebp, ebp
mov eax, dword [esp + 0x1c]
imul esi
add eax, esi
cmp eax, dword [esp + 0x30]
jle 0x4b55cc
sub eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
jmp 0x4b55d2
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, ebp
imul edi
add eax, edi
cmp eax, dword [esp + 0x34]
jle 0x4b55e8
sub eax, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
jmp 0x4b55ee
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x2dc]
sub eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x8c]
push eax
mov ecx, dword [ebx + 0x2d8]
sub ecx, dword [esp + 0x40]
mov edx, dword [ebx + 0x2d4]
mov eax, dword [ebx + 0x2d0]
call fcn.0040fa08
lea eax, [esp + 0x88]
push eax
mov eax, ebp
imul edi
add eax, dword [esp + 0x1c]
add eax, edi
sub eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0xa0]
push eax
mov ecx, dword [esp + 0x28]
imul ecx, esi
add ecx, dword [esp + 0x20]
add ecx, esi
sub ecx, dword [esp + 0x44]
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.0040fa08
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.0041f240
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041a6cc
inc ebp
dec dword [esp + 0x64]
jne 0x4b55b4
inc dword [esp + 0x1c]
dec dword [esp + 0x60]
jne 0x4b55a1
mov esi, dword [ebx + 0x2e8]
sub esi, dword [ebx + 0x2e0]
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
cdq
idiv esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4b57bb
inc eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
imul esi
add eax, dword [esp + 0x40]
add eax, esi
cmp eax, dword [esp + 0x48]
jle 0x4b56f9
mov eax, dword [esp + 0x1c]
imul esi
add eax, dword [esp + 0x40]
add eax, esi
sub eax, dword [esp + 0x48]
mov dword [esp + 0x38], eax
jmp 0x4b56ff
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x274]
add eax, dword [esp + 4]
push eax
lea eax, [esp + 0x8c]
push eax
mov ecx, dword [ebx + 0x270]
add ecx, dword [ebx + 0x2e8]
sub ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0x270]
add eax, dword [ebx + 0x2e0]
mov edx, dword [ebx + 0x274]
call fcn.0040fa08
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x80]
add eax, dword [esp + 8]
push eax
lea eax, [esp + 0xa0]
push eax
mov ecx, dword [esp + 0x84]
add ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x28]
imul esi
add ecx, eax
add ecx, esi
sub ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x84]
add eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
imul edx, esi
add eax, edx
mov edx, dword [esp + 0x88]
call fcn.0040fa08
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.0041f240
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041a6cc
inc dword [esp + 0x1c]
dec dword [esp + 0x60]
jne 0x4b56d1
mov esi, dword [ebx + 0x2f8]
sub esi, dword [ebx + 0x2f0]
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
cdq
idiv esi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
test eax, eax
jl 0x4b58d9
inc eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
imul esi
add eax, dword [esp + 0x50]
add eax, esi
cmp eax, dword [esp + 0x58]
jle 0x4b5817
mov eax, dword [esp + 0x1c]
imul esi
add eax, dword [esp + 0x50]
add eax, esi
sub eax, dword [esp + 0x58]
mov dword [esp + 0x38], eax
jmp 0x4b581d
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x27c]
push eax
lea eax, [esp + 0x8c]
push eax
mov ecx, dword [ebx + 0x270]
add ecx, dword [ebx + 0x2f8]
sub ecx, dword [esp + 0x40]
mov edx, dword [ebx + 0x27c]
sub edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x270]
add eax, dword [ebx + 0x2f0]
call fcn.0040fa08
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x88]
push eax
lea eax, [esp + 0xa0]
push eax
mov ecx, dword [esp + 0x84]
add ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x28]
imul esi
add ecx, eax
add ecx, esi
sub ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x84]
add eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x28]
imul edx, esi
add eax, edx
mov edx, dword [esp + 0x90]
sub edx, dword [esp + 0x1c]
call fcn.0040fa08
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.0041f240
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041a6cc
inc dword [esp + 0x1c]
dec dword [esp + 0x60]
jne 0x4b57ef
mov esi, dword [esp + 8]
mov edi, dword [ebx + 0x2f4]
sub edi, dword [ebx + 0x2e4]
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 0x4b59e7
inc eax
mov dword [esp + 0x60], eax
xor ebp, ebp
mov eax, ebp
imul edi
add eax, dword [esp + 0x44]
add eax, edi
cmp eax, dword [esp + 0x54]
jle 0x4b592f
mov eax, ebp
imul edi
add eax, dword [esp + 0x44]
add eax, edi
sub eax, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
jmp 0x4b5935
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x274]
add eax, dword [ebx + 0x2f4]
sub eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x8c]
push eax
mov ecx, dword [ebx + 0x270]
add ecx, esi
mov edx, dword [ebx + 0x274]
add edx, dword [ebx + 0x2e4]
mov eax, dword [ebx + 0x270]
call fcn.0040fa08
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x80]
add eax, dword [esp + 0x48]
mov edx, ebp
imul edx, edi
add eax, edx
add eax, edi
sub eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0xa0]
push eax
mov edx, dword [esp + 0x88]
add edx, dword [esp + 0x50]
mov eax, ebp
imul eax, edi
add edx, eax
mov ecx, dword [esp + 0x84]
add ecx, esi
mov eax, dword [esp + 0x84]
call fcn.0040fa08
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.0041f240
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041a6cc
inc ebp
dec dword [esp + 0x60]
jne 0x4b590b
mov esi, dword [esp + 0xc]
mov edi, dword [ebx + 0x2fc]
sub edi, dword [ebx + 0x2ec]
mov eax, dword [esp + 0x5c]
sub eax, dword [esp + 0x4c]
cdq
idiv edi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x4b5af5
inc eax
mov dword [esp + 0x60], eax
xor ebp, ebp
mov eax, ebp
imul edi
add eax, dword [esp + 0x4c]
add eax, edi
cmp eax, dword [esp + 0x5c]
jle 0x4b5a3d
mov eax, ebp
imul edi
add eax, dword [esp + 0x4c]
add eax, edi
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
jmp 0x4b5a43
xor eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x274]
add eax, dword [ebx + 0x2fc]
sub eax, dword [esp + 0x3c]
push eax
lea eax, [esp + 0x8c]
push eax
mov edx, dword [ebx + 0x274]
add edx, dword [ebx + 0x2ec]
mov eax, dword [ebx + 0x278]
sub eax, esi
mov ecx, dword [ebx + 0x278]
call fcn.0040fa08
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x80]
add eax, dword [esp + 0x50]
mov edx, ebp
imul edx, edi
add eax, edx
add eax, edi
sub eax, dword [esp + 0x40]
push eax
lea eax, [esp + 0xa0]
push eax
mov edx, dword [esp + 0x88]
add edx, dword [esp + 0x58]
mov eax, ebp
imul eax, edi
add edx, eax
mov eax, dword [esp + 0x8c]
sub eax, esi
mov ecx, dword [esp + 0x8c]
call fcn.0040fa08
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.0041f240
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041a6cc
inc ebp
dec dword [esp + 0x60]
jne 0x4b5a19
mov eax, dword [ebx + 0x274]
add eax, dword [esp + 0x44]
push eax
lea eax, [esp + 0x8c]
push eax
mov ecx, dword [ebx + 0x270]
add ecx, dword [esp + 0x48]
mov edx, dword [ebx + 0x274]
mov eax, dword [ebx + 0x270]
call fcn.0040fa08
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x80]
add eax, dword [ebx + 0x2e4]
push eax
lea eax, [esp + 0xa0]
push eax
mov ecx, dword [esp + 0x84]
add ecx, dword [ebx + 0x2e0]
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x84]
call fcn.0040fa08
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.0041f240
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041a6cc
mov eax, dword [ebx + 0x274]
add eax, dword [ebx + 0x2ec]
push eax
lea eax, [esp + 0x8c]
push eax
mov eax, dword [ebx + 0x270]
add eax, dword [ebx + 0x2e8]
mov ecx, dword [ebx + 0x278]
mov edx, dword [ebx + 0x274]
call fcn.0040fa08
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x80]
add eax, dword [esp + 0x50]
push eax
lea eax, [esp + 0xa0]
push eax
mov eax, dword [esp + 0x84]
add eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
call fcn.0040fa08
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.0041f240
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041a6cc
mov eax, dword [ebx + 0x27c]
push eax
lea eax, [esp + 0x8c]
push eax
mov ecx, dword [ebx + 0x270]
add ecx, dword [ebx + 0x2f0]
mov edx, dword [ebx + 0x274]
add edx, dword [ebx + 0x2f4]
mov eax, dword [ebx + 0x270]
call fcn.0040fa08
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x88]
push eax
lea eax, [esp + 0xa0]
push eax
mov ecx, dword [esp + 0x84]
add ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x88]
add edx, dword [esp + 0x60]
mov eax, dword [esp + 0x84]
call fcn.0040fa08
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.0041f240
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041a6cc
mov eax, dword [ebx + 0x27c]
push eax
lea eax, [esp + 0x8c]
push eax
mov edx, dword [ebx + 0x274]
add edx, dword [ebx + 0x2fc]
mov eax, dword [ebx + 0x270]
add eax, dword [ebx + 0x2f8]
mov ecx, dword [ebx + 0x278]
call fcn.0040fa08
lea eax, [esp + 0x88]
push eax
mov eax, dword [esp + 0x88]
push eax
lea eax, [esp + 0xa0]
push eax
mov edx, dword [esp + 0x88]
add edx, dword [esp + 0x68]
mov eax, dword [esp + 0x84]
add eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x8c]
call fcn.0040fa08
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.0041f240
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041a6cc
add esp, 0xa8
pop ebp
pop edi
pop esi
pop ebx
ret