Function at 0x501570
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.0049d6f8
sub eax, dword [ebx + 0x288]
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x270]
call fcn.0049d718
sub eax, dword [ebx + 0x28c]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x68]
mov eax, ebx
call fcn.004bd454
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.00410954
lea eax, [esp + 0x78]
call fcn.0049d6f8
mov esi, eax
lea eax, [ebx + 0x270]
call fcn.0049d6f8
sub esi, eax
mov dword [esp + 0x38], esi
lea eax, [esp + 0x78]
call fcn.0049d718
mov esi, eax
lea eax, [ebx + 0x270]
call fcn.0049d718
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.0041093c
lea ecx, [esp + 0x50]
mov edx, dword [ebx + 0x2f4]
add edx, dword [esp + 0x3c]
mov eax, dword [ebx + 0x2f0]
call fcn.0041093c
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.0041093c
cmp dword [ebx + 0x328], 0xffffffff
je 0x501750
mov eax, dword [ebx + 0x250]
mov eax, dword [eax + 0x6c]
mov edx, dword [ebx + 0x328]
call fcn.004115bc
mov esi, eax
cmp dword [ebx + 0x38], 0
jle 0x502152
cmp dword [ebx + 0x3c], 0
jle 0x502152
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 0x502152
inc eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x501741
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.0041bf08
inc ebp
dec dword [esp + 0x64]
jne 0x501717
inc dword [esp + 0x1c]
dec dword [esp + 0x60]
jne 0x501708
jmp 0x502152
lea eax, [ebx + 0x280]
call fcn.0049d6f8
mov esi, eax
lea eax, [ebx + 0x280]
call fcn.0049d718
mov edi, eax
lea eax, [esp + 0x78]
call fcn.0049d6f8
mov dword [esp + 0x28], eax
lea eax, [esp + 0x78]
call fcn.0049d718
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 0x5018d3
inc eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x5018c5
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 0x5017de
sub eax, dword [esp + 0x28]
mov dword [esp + 0x38], eax
jmp 0x5017e4
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, ebp
imul edi
add eax, edi
cmp eax, dword [esp + 0x2c]
jle 0x5017fa
sub eax, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
jmp 0x501800
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.00410954
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.00410954
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.00420ec4
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041be80
inc ebp
dec dword [esp + 0x64]
jne 0x5017c6
inc dword [esp + 0x1c]
dec dword [esp + 0x60]
jne 0x5017b3
lea eax, [ebx + 0x2d0]
call fcn.0049d578
test al, al
jne 0x501ace
cmp byte [ebx + 0x20e], 2
jne 0x50190c
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 0x501989
cmp byte [ebx + 0x20e], 3
jne 0x50193d
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 0x501989
cmp byte [ebx + 0x20e], 0
jne 0x501963
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 0x501989
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.0049d6f8
mov esi, eax
lea eax, [ebx + 0x2d0]
call fcn.0049d718
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 0x501ace
inc eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x501ac0
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 0x5019fd
sub eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
jmp 0x501a03
xor eax, eax
mov dword [esp + 0x38], eax
mov eax, ebp
imul edi
add eax, edi
cmp eax, dword [esp + 0x34]
jle 0x501a19
sub eax, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
jmp 0x501a1f
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.00410954
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.00410954
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.00420ec4
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041be80
inc ebp
dec dword [esp + 0x64]
jne 0x5019e5
inc dword [esp + 0x1c]
dec dword [esp + 0x60]
jne 0x5019d2
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 0x501bec
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 0x501b2a
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 0x501b30
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.00410954
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.00410954
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.00420ec4
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041be80
inc dword [esp + 0x1c]
dec dword [esp + 0x60]
jne 0x501b02
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 0x501d0a
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 0x501c48
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 0x501c4e
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.00410954
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.00410954
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.00420ec4
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041be80
inc dword [esp + 0x1c]
dec dword [esp + 0x60]
jne 0x501c20
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 0x501e18
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 0x501d60
mov eax, ebp
imul edi
add eax, dword [esp + 0x44]
add eax, edi
sub eax, dword [esp + 0x54]
mov dword [esp + 0x3c], eax
jmp 0x501d66
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.00410954
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.00410954
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.00420ec4
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041be80
inc ebp
dec dword [esp + 0x60]
jne 0x501d3c
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 0x501f26
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 0x501e6e
mov eax, ebp
imul edi
add eax, dword [esp + 0x4c]
add eax, edi
sub eax, dword [esp + 0x5c]
mov dword [esp + 0x3c], eax
jmp 0x501e74
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.00410954
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.00410954
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.00420ec4
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041be80
inc ebp
dec dword [esp + 0x60]
jne 0x501e4a
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.00410954
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.00410954
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.00420ec4
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041be80
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.00410954
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.00410954
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.00420ec4
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041be80
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.00410954
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.00410954
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.00420ec4
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041be80
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.00410954
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.00410954
lea eax, [esp + 0x9c]
push eax
mov eax, dword [ebx + 0x26c]
call fcn.00420ec4
mov ecx, eax
mov eax, dword [esp + 8]
pop edx
call fcn.0041be80
add esp, 0xa8
pop ebp
pop edi
pop esi
pop ebx
ret