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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x68]
cmp eax, dword [ecx + 8]
jbe 0x506ffa
sub esp, 0xe8
xor eax, eax
lea edi, [esp + 0xa8]
call fcn.00452048
mov ebx, dword [esp + 0xec]
mov dword [esp], ebx
cmp dword [esp], 0
je 0x506fef
call fcn.004d5f50
mov ebx, dword [esp + 0xec]
mov dword [esp + 8], ebx
cmp dword [esp + 8], 0
je 0x506fe4
mov dword [esp], 4
mov eax, 0x611de8
mov dword [esp + 4], eax
call fcn.00427c70
cmp eax, 0
jne 0x506fd7
call fcn.004a6ba0
mov esi, dword [esp]
mov edx, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0xec]
cmp ebx, 0
je 0x506fd0
mov ebp, dword [ebx + 0x18]
mov dword [esp + 0x78], ebp
mov ebp, dword [ebx + 0x1c]
mov dword [esp + 0x7c], ebp
mov ebp, dword [ebx + 0x20]
mov dword [esp + 0x80], ebp
mov ebp, dword [ebx + 0x24]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], edx
mov ebp, edx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x94], eax
mov dword [esp + 0x74], eax
mov edx, 0x7b8a800
mov ecx, 0xfffffff2
xor ebx, ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x68], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], edx
mov dword [esp], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x3b9aca00
mov dword [esp + 0xc], 0
call fcn.0044a560
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add eax, ebx
adc edx, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x3b9aca00
mov dword [esp + 0xc], 0
call fcn.0044a560
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov esi, 0x3b9aca00
xor ebx, ebx
mov ebp, edx
or ebp, ebx
jne 0x506fbb
mul esi
mov ebx, eax
mov ecx, edx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, ebx
sbb edx, ecx
mov ecx, eax
mov ebx, dword [esp + 0x70]
add ecx, ebx
cmp ecx, 0x3b9aca00
jl 0x506f99
mov eax, dword [esp + 0x68]
add eax, 1
adc edi, 0
mov dword [esp + 0x68], eax
sub ecx, 0x3b9aca00
mov ebp, ecx
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], edi
mov ecx, edi
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0xa4], eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x28], eax
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x58], edx
mov eax, ecx
mov dword [esp + 0x5c], ecx
cmp edi, ecx
jg 0x506c6f
jl 0x506c42
mov ebx, dword [esp + 0x28]
cmp ebx, edx
ja 0x506c6f
mov esi, dword [esp + 0x78]
mov ebp, dword [esp + 0x7c]
mov eax, ecx
cmp ebp, ecx
jne 0x506f92
cmp esi, edx
jne 0x506f92
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0x60]
cmp edx, ebx
jle 0x506f92
mov ecx, 1
cmp cl, 0
je 0x506c86
nop
call fcn.00428b40
add esp, 0xe8
ret
mov ebx, dword [esp + 0xec]
mov ebp, dword [esp + 0x88]
mov dword [ebx + 0x18], ebp
mov ebp, dword [esp + 0x8c]
mov dword [ebx + 0x1c], ebp
mov ebp, dword [esp + 0x90]
mov dword [ebx + 0x20], ebp
mov ebp, dword [esp + 0x94]
cmp byte [0x6cfdd8], 0
jne 0x506f7e
mov dword [ebx + 0x24], ebp
mov ebx, dword [esp + 0xf4]
cmp ebx, 0
jne 0x506d27
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp], 0
call fcn.005076c0
mov ebx, dword [esp + 4]
mov dword [esp + 0xf0], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0xf4], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0xf8], ebx
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ecx
cmp ecx, 0
je 0x506d27
nop
call fcn.00428b40
add esp, 0xe8
ret
mov eax, dword [esp + 0xf4]
mov dword [esp], 0x5bebc0
cdq
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00406120
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0xec]
cmp ebx, 0
je 0x506f77
cmp byte [0x6cfdd8], 0
jne 0x506f63
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0xf4]
mov dword [esp], 0x5be600
cdq
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00406120
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0xec]
cmp ebx, 0
je 0x506f5c
cmp byte [0x6cfdd8], 0
jne 0x506f48
mov dword [ebx + 0x2c], ecx
mov ebp, dword [esp + 0xf0]
mov ecx, dword [esp + 0xf4]
mov ebx, dword [esp + 0xf8]
mov dword [esp + 0x44], ebx
xor edx, edx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], ebp
mov ecx, ebp
mov ebp, dword [esp + 0x18]
cmp edx, ebp
jge 0x506f34
mov ebx, ecx
mov dword [esp + 0x30], ecx
cmp ecx, 0
je 0x506f41
mov ebp, dword [ecx]
mov dword [esp + 0xc8], ebp
mov ebp, dword [ecx + 4]
mov dword [esp + 0xcc], ebp
mov ebp, dword [ecx + 8]
mov dword [esp + 0xd0], ebp
mov ebp, dword [ecx + 0xc]
mov dword [esp + 0xd4], ebp
mov edi, dword [ecx + 0x10]
mov esi, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov ebp, dword [ebx + 0x1c]
mov dword [esp + 0x1c], edx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xa8], ebx
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0xac], ebx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0xb0], ebx
mov ebx, dword [esp + 0xd4]
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xd8], edi
mov dword [esp + 0xb8], edi
mov dword [esp + 0xdc], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xc4], ebp
mov dword [esp], 0x5bebc0
mov ebx, dword [esp + 0xec]
mov ebp, dword [ebx + 0x28]
mov dword [esp + 4], ebp
lea ebx, [esp + 0xa8]
mov dword [esp + 8], ebx
add dword [esp + 8], 8
lea ebx, [esp + 0xa8]
mov dword [esp + 0xc], ebx
call fcn.00406d30
mov dword [esp], 0x5be600
mov ebx, dword [esp + 0xec]
mov ebp, dword [ebx + 0x2c]
mov dword [esp + 4], ebp
lea ebx, [esp + 0xa8]
mov dword [esp + 8], ebx
lea ebx, [esp + 0xa8]
mov dword [esp + 0xc], ebx
add dword [esp + 0xc], 8
call fcn.00406d30
mov ecx, dword [esp + 0x30]
add ecx, 0x20
mov edx, dword [esp + 0x1c]
inc edx
mov ebp, dword [esp + 0x18]
cmp edx, ebp
jl 0x506dfc
nop
call fcn.00428b40
add esp, 0xe8
ret
mov dword [ecx], eax
jmp 0x506e0b
lea esi, [ebx + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.0040e4e0
jmp 0x506dc7
mov dword [ebx], eax
jmp 0x506db7
lea esi, [ebx + 0x28]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.0040e4e0
jmp 0x506d77
mov dword [ebx], eax
jmp 0x506d67
lea esi, [ebx + 0x24]
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0040e4e0
jmp 0x506cc2
xor ecx, ecx
jmp 0x506c74
cmp ecx, 0
jge 0x506bde
mov eax, dword [esp + 0x68]
sub eax, 1
sbb edi, 0
mov dword [esp + 0x68], eax
add ecx, 0x3b9aca00
jmp 0x506bde
imul edx, esi
mov ebp, eax
imul ebp, ebx
add ebp, edx
mov edx, esi
mul edx
add edx, ebp
jmp 0x506ba6
mov dword [ebx], eax
jmp 0x506aaf
nop
call fcn.00428b40
add esp, 0xe8
ret
mov dword [0], eax
jmp 0x506a6d
mov dword [0], eax
jmp 0x506a52
call fcn.0044ff60
jmp fcn.00506a10