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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x503c61
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, [0x61257c]
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, [0x5d00a0]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], ebx
call fcn.004fc170
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 0x503b11
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, [0x61257c]
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, [0x5d00a0]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], ebx
call fcn.004fc170
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 0x503c5a
test esi, esi
je 0x503b39
mov ebp, dword [esi + 0xc]
test ebp, ebp
jne 0x503c53
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.00503c70
movzx eax, byte [esp + 0xc]
test al, al
je 0x503bf6
mov eax, 1
test al, al
je 0x503b7c
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x503a75
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.004f6180
jmp 0x503a75
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x503bde
lea eax, [0x5ac5e0]
mov dword [esp], eax
call fcn.0040b910
mov edi, dword [esp + 4]
mov dword [esp + 0x58], edi
mov eax, dword [0x71e9f0]
test eax, eax
jne 0x503bd3
mov eax, dword [esp + 0x50]
mov dword [edi], eax
mov dword [esp], eax
mov byte [esp + 4], 1
call fcn.00503fe0
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.0045e220
jmp 0x503baa
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, [0x610a54]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jne 0x503c49
mov ebx, dword [esp + 0x54]
mov ebp, dword [ebx + 0x20]
mov edx, dword [ebx + 0x24]
lea esi, [0x610ae0]
cmp esi, ebp
jne 0x503c1e
mov ebp, dword [edx + 8]
mov edx, dword [edx + 0xc]
test ebp, ebp
je 0x503c41
lea edi, [0x5bac60]
cmp dword [ebp + 4], edi
jne 0x503c3d
cmp dword [edx], 0x20000003
sete dl
mov eax, edx
jmp 0x503b5b
xor edx, edx
jmp 0x503c36
lea edi, [0x5bac60]
jmp 0x503c3d
mov ebx, dword [esp + 0x54]
mov edx, ebx
mov ebp, ecx
jmp 0x503c0e
xor eax, eax
jmp 0x503b5b
xor eax, eax
jmp 0x503b5b
call fcn.0045ccc0
jmp fcn.005039c0