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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x503411
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x48]
mov ebx, dword [eax + 0x40]
mov ebp, dword [esp + 0x64]
mov dword [esp], ebp
mov esi, dword [esp + 0x68]
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
lea ecx, [0x63bcec]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
lea edi, [0x5eb777]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], ebx
call fcn.004fc890
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
jmp 0x5032c1
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x44]
mov edx, dword [eax + 0x48]
mov ebx, dword [eax + 0x40]
mov ebp, dword [esp + 0x64]
mov dword [esp], ebp
mov esi, dword [esp + 0x68]
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
lea ecx, [0x63bcec]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
lea edi, [0x5eb777]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], ebx
call fcn.004fc890
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc eax
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x6c]
mov ebp, esi
mov esi, edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0x40], eax
mov eax, ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], eax
mov ebp, dword [esp + 0x40]
cmp ebp, 2
jge 0x50340a
test esi, esi
je 0x5032e9
mov ebp, dword [esi + 0xc]
test ebp, ebp
jne 0x503403
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00503420
movzx eax, byte [esp + 0xc]
test al, al
je 0x5033a6
mov eax, 1
test al, al
je 0x50332c
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x503225
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.004f5e70
jmp 0x503225
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x50338e
lea eax, [0x5c6360]
mov dword [esp], eax
call fcn.0040b8e0
mov edi, dword [esp + 4]
mov dword [esp + 0x58], edi
mov eax, dword [0x770e60]
test eax, eax
jne 0x503383
mov eax, dword [esp + 0x50]
mov dword [edi], eax
mov dword [esp], eax
mov byte [esp + 4], 1
call fcn.00503520
mov eax, dword [esp + 0x58]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x5c
ret
mov eax, dword [esp + 0x50]
call fcn.0045df70
jmp 0x50335a
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x7c], eax
add esp, 0x5c
ret
lea eax, [0x63a094]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jne 0x5033f9
mov ebx, dword [esp + 0x54]
mov ebp, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
lea esi, [0x63a148]
cmp esi, ebp
jne 0x5033ce
mov ebp, dword [edx + 8]
mov edx, dword [edx + 0xc]
test ebp, ebp
je 0x5033f1
lea edi, [0x5d3640]
cmp dword [ebp + 4], edi
jne 0x5033ed
cmp dword [edx], 0x20000003
sete dl
mov eax, edx
jmp 0x50330b
xor edx, edx
jmp 0x5033e6
lea edi, [0x5d3640]
jmp 0x5033ed
mov ebx, dword [esp + 0x54]
mov edx, ebx
mov ebp, ecx
jmp 0x5033be
xor eax, eax
jmp 0x50330b
xor eax, eax
jmp 0x50330b
call fcn.0045ca10
jmp fcn.00503170