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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x506ce4
sub esp, 0x84
mov eax, 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
test ecx, ecx
je 0x506cd3
mov ecx, dword [eax + 4]
cmp ecx, 2
jge 0x506cb1
mov ecx, dword [0x7c9494]
mov edx, dword [0x7c9490]
test edx, edx
jne 0x506c9c
mov byte [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov ecx, dword [0x7c8f08]
lea edx, [esp + 0x74]
cmp edx, ecx
je 0x50697f
mov dword [esp + 0x2c], ecx
mov ebx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
test ebx, ebx
jg 0x506c4f
mov esi, ebx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov ebx, esi
cmp ebx, esi
jle 0x506c48
mov dword [esp + 0x40], edi
mov dword [esp + 0x18], ebx
cmp edi, ebp
je 0x506959
mov dword [esp], edi
mov dword [esp + 4], ebp
shl esi, 2
mov dword [esp + 8], esi
call fcn.0044be80
mov eax, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax]
mov byte [esp + 0x74], al
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x3c], edx
xor ebx, ebx
jmp 0x5069c6
lea eax, [esp + 0x74]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], ecx
call fcn.004dd160
mov eax, dword [esp + 0x20]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x3c]
cmp ebx, ecx
jge 0x506a42
mov dword [esp + 0x20], ebx
mov eax, dword [edx + ebx*4]
mov dword [esp + 0x30], eax
mov dword [esp], eax
mov ecx, dword [0x7c8f08]
mov dword [esp + 4], ecx
call fcn.004dd6c0
mov eax, dword [esp + 8]
test eax, eax
jg 0x506998
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1f
mov eax, dword [0x7db370]
test eax, eax
jne 0x506a35
lea eax, [0x625548]
mov dword [edi], eax
lea eax, [0x65f350]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edi
add esp, 0x84
ret
lea eax, [0x625548]
call fcn.0044b680
jmp 0x506a1a
mov ecx, dword [eax]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x74]
mov dword [esp], ecx
call fcn.004dd6c0
mov eax, dword [esp + 8]
test eax, eax
je 0x506aaf
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1b
mov eax, dword [0x7db370]
test eax, eax
jne 0x506aa2
lea eax, [0x623b12]
mov dword [edi], eax
lea eax, [0x65f350]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edi
add esp, 0x84
ret
lea eax, [0x623b12]
call fcn.0044b680
jmp 0x506a87
mov byte [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov byte [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 4]
mov dword [esp + 4], ecx
sar ecx, 0x1f
mov dword [esp + 8], ecx
lea ecx, [esp + 0x54]
mov dword [esp], ecx
call fcn.004dcb10
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], eax
call fcn.004dd160
mov eax, dword [esp + 0x88]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], eax
xor edx, edx
jmp 0x506b54
mov ebx, dword [esp + 0x20]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
cmp edx, ecx
jge 0x506c2b
mov dword [esp + 0x20], edx
mov ecx, dword [eax + edx*4]
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
lea ebx, [esp + 0x44]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov ecx, dword [0x7c8f08]
mov dword [esp + 8], ecx
call fcn.004dcf10
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x64]
mov dword [esp], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004dd4d0
lea eax, [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [0x7c8f08]
mov dword [esp + 4], ecx
call fcn.004dd6c0
mov eax, dword [esp + 8]
test eax, eax
je 0x506b45
lea eax, [0x5ea220]
mov dword [esp], eax
call fcn.00409a30
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x1d
mov eax, dword [0x7db370]
test eax, eax
jne 0x506c1e
lea eax, [0x6247c7]
mov dword [edi], eax
lea eax, [0x65f350]
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], edi
add esp, 0x84
ret
lea eax, [0x6247c7]
call fcn.0044b680
jmp 0x506c03
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x84
ret
mov esi, ebx
jmp 0x50693a
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
lea eax, [0x5df6a0]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 8], eax
call fcn.00437b80
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x74]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x88]
jmp 0x506932
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
add esp, 0x84
ret
cmp ecx, 0x7fffffff
jle 0x506cca
mov edx, dword [0x7c9488]
mov ecx, dword [0x7c948c]
jmp 0x5068de
xor ecx, ecx
xor edx, edx
jmp 0x5068de
mov ecx, dword [0x7c949c]
mov edx, dword [0x7c9498]
jmp 0x5068de
call fcn.00449f20
jmp fcn.00506880