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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5067a8
sub esp, 0x6c
lea eax, [0x6be240]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 8], ecx
call fcn.0040ab90
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test al, al
jne 0x50676b
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x14]
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
cmp eax, 0x10
jne 0x5066f9
lea eax, [0x6aa4e0]
mov dword [esp], eax
call fcn.0040cd70
mov eax, dword [esp + 4]
mov dword [esp + 0x68], eax
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0x10
mov dword [esp + 0x18], 0x10
mov ebx, dword [esp + 0x74]
mov dword [esp], ebx
call edx
lea eax, [0x6d1f00]
mov dword [esp], eax
call fcn.0040cd70
mov eax, dword [esp + 4]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x70]
mov dword [eax], ecx
mov ecx, dword [0x884700]
lea edx, [eax + 4]
test ecx, ecx
jne 0x5066e0
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x68]
movzx edx, byte [ecx + 7]
movzx ebx, byte [ecx + 6]
movzx ebp, byte [ecx]
movzx esi, byte [ecx + 1]
mov dword [esp + 0x4c], esi
movzx edi, byte [ecx + 2]
mov dword [esp + 0x48], edi
movzx eax, byte [ecx + 3]
mov dword [esp + 0x44], eax
movzx eax, byte [ecx + 4]
mov dword [esp + 0x40], eax
movzx edi, byte [ecx + 5]
mov dword [esp + 0x3c], edi
movzx esi, byte [ecx + 8]
mov dword [esp + 0x38], esi
movzx esi, byte [ecx + 0xf]
mov dword [esp + 0x34], esi
movzx esi, byte [ecx + 9]
mov dword [esp + 0x30], esi
movzx esi, byte [ecx + 0xa]
mov dword [esp + 0x2c], esi
movzx esi, byte [ecx + 0xb]
mov dword [esp + 0x28], esi
movzx esi, byte [ecx + 0xc]
mov dword [esp + 0x24], esi
movzx esi, byte [ecx + 0xd]
movzx ecx, byte [ecx + 0xe]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x5c], 0
shl eax, 0x18
shl edi, 0x10
or eax, edi
mov edi, ebx
shl ebx, 8
or eax, ebx
or eax, edx
mov dword [esp + 0x50], eax
shl ebp, 0x18
mov eax, dword [esp + 0x4c]
shl eax, 0x10
or ebp, eax
mov eax, dword [esp + 0x48]
shl eax, 8
or ebp, eax
mov eax, dword [esp + 0x44]
or ebp, eax
mov eax, dword [esp + 0x40]
shr eax, 8
or ebp, eax
mov eax, dword [esp + 0x3c]
shr eax, 0x10
or ebp, eax
shr edi, 0x18
or ebp, edi
mov dword [esp + 0x54], ebp
mov eax, dword [esp + 0x24]
mov edx, eax
shl eax, 0x18
mov ebx, esi
shl esi, 0x10
or eax, esi
mov ebp, ecx
shl ecx, 8
or eax, ecx
mov ecx, dword [esp + 0x34]
or ecx, eax
mov dword [esp + 0x58], ecx
mov eax, dword [esp + 0x38]
shl eax, 0x18
mov esi, dword [esp + 0x30]
shl esi, 0x10
or eax, esi
mov esi, dword [esp + 0x2c]
shl esi, 8
or eax, esi
mov esi, dword [esp + 0x28]
or eax, esi
shr edx, 8
or eax, edx
shr ebx, 0x10
or eax, ebx
shr ebp, 0x18
or eax, ebp
mov dword [esp + 0x5c], eax
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov ebp, 4
shl ebp, 1
and ebp, 0xa
shl ebp, 4
mov esi, dword [esp + 0x60]
mov dword [esi + ebp + 0xc], edx
mov dword [esi + ebp + 0x10], ebx
mov dword [esi + ebp + 0x14], ecx
mov dword [esi + ebp + 0x18], eax
mov eax, 2
mov dword [esp + 0x1c], eax
cmp eax, 0x10
jge 0x5066a7
mov ecx, eax
shl eax, 2
and eax, 0xc
mov edx, ecx
sar ecx, 2
and ecx, 3
or eax, ecx
mov ecx, eax
shl eax, 1
and eax, 0xa
sar ecx, 1
and ecx, 5
or eax, ecx
mov ecx, edx
sar edx, 0x1f
sub ecx, edx
mov edx, ecx
sar ecx, 1
shl ecx, 2
and ecx, 0xc
sar edx, 3
and edx, 3
or ecx, edx
mov edx, ecx
shl ecx, 1
and ecx, 0xa
sar edx, 1
and edx, 5
or ecx, edx
cmp ecx, 0x10
jae 0x5066d9
shl ecx, 4
mov edx, dword [esi + ecx + 0x14]
mov ebp, dword [esi + ecx + 0x18]
mov dword [esp + 0x4c], ebp
mov edi, dword [esi + ecx + 0x10]
mov dword [esp + 0x48], edi
mov ecx, dword [esi + ecx + 0xc]
mov dword [esp + 0x44], ecx
shr ebp, 1
shl ecx, 0x1f
or ebp, ecx
mov ecx, edx
shr edx, 1
mov ebx, dword [esp + 0x4c]
shl ebx, 0x1f
or edx, ebx
mov ebx, dword [esp + 0x44]
shr ebx, 1
shl edi, 0x1f
or ebx, edi
and ecx, 1
cmp ecx, 1
sete cl
and ecx, 1
mov edi, dword [esp + 0x48]
shr edi, 1
test cl, cl
je 0x50660c
xor edi, 0xe1000000
cmp eax, 0x10
jae 0x5066d9
shl eax, 4
mov dword [esi + eax + 0xc], ebx
mov dword [esi + eax + 0x10], edi
mov dword [esi + eax + 0x14], edx
mov dword [esi + eax + 0x18], ebp
mov ecx, dword [esi + eax + 0x10]
mov edx, dword [esi + eax + 0xc]
mov eax, dword [esi + eax + 0x14]
mov ebx, dword [esp + 0x1c]
lea edi, [ebx + 1]
mov dword [esp + 0x20], edi
shl edi, 2
and edi, 0xc
mov ebx, dword [esp + 0x20]
sar ebx, 2
and ebx, 3
or edi, ebx
mov ebx, edi
shl edi, 1
and edi, 0xa
sar ebx, 1
and ebx, 5
or edi, ebx
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x50]
xor ecx, ebx
xor edx, esi
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x58]
xor ebp, ebx
xor eax, esi
cmp edi, 0x10
jae 0x5066d2
shl edi, 4
mov esi, dword [esp + 0x60]
mov dword [esi + edi + 0xc], edx
mov dword [esi + edi + 0x10], ecx
mov dword [esi + edi + 0x14], eax
mov dword [esi + edi + 0x18], ebp
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 2]
mov dword [esp + 0x1c], eax
cmp eax, 0x10
jl 0x506562
lea eax, [0x84ad80]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x6c
ret
call fcn.00424680
ud2
call fcn.00424680
ud2
mov dword [esp], edx
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
call fcn.0040d5a0
mov eax, dword [esp + 0x60]
jmp 0x5063fb
lea eax, [0x6c1540]
mov dword [esp], eax
call fcn.0040cd70
mov eax, dword [esp + 4]
mov dword [esp + 0x64], eax
mov dword [eax + 4], 0x2c
mov ecx, dword [0x884700]
test ecx, ecx
jne 0x506753
lea ecx, [0x713f4d]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
lea ecx, [0x847d20]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x6c
ret
mov dword [esp], eax
lea ecx, [0x713f4d]
mov dword [esp + 4], ecx
call fcn.0040d5a0
mov eax, dword [esp + 0x64]
jmp 0x506728
mov eax, dword [ecx + 0x14]
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov dword [esp], edx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], ebx
add esp, 0x6c
ret
call fcn.004486b0
jmp fcn.00506310