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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5061fb
sub esp, 0x70
mov eax, dword [esp + 0x90]
test eax, eax
jne 0x505f7d
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x505e6e
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x88]
test edx, edx
je 0x505e37
mov dword [esp + 0x50], eax
mov dword [esp + 0x30], ecx
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x74]
mov ebx, dword [ecx + 0x13c]
mov ebp, dword [esp + 0x8c]
mov dword [esp], ebp
mov dword [esp + 4], ebx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
test edx, edx
jne 0x505e25
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.004f2790
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
test ecx, ecx
jne 0x505e13
mov eax, dword [esp + 0x74]
mov byte [eax + 0x144], 1
mov dword [esp + 0x48], ebx
mov dword [esp + 0x68], edx
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.004a5990
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x48]
test edx, edx
je 0x505c25
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00505960
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call fcn.00505960
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x150], edx
mov edx, dword [0xe8ff30]
test edx, edx
jne 0x505c10
mov edx, dword [esp + 0x54]
mov dword [ebx + 0x154], edx
mov dword [ebx + 0x158], ecx
mov ecx, dword [0xe8ff30]
test ecx, ecx
jne 0x505c03
mov dword [ebx + 0x15c], eax
lea eax, [0x9ba320]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x91dd40]
mov dword [esp + 8], eax
lea eax, [0x9ff594]
mov dword [esp + 0xc], eax
call fcn.004157d0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
add esp, 0x70
ret
lea edi, [ebx + 0x15c]
call fcn.00456ab0
jmp 0x505bc3
lea edi, [ebx + 0x154]
mov edx, eax
mov eax, dword [esp + 0x54]
call fcn.00456ab0
mov eax, edx
jmp 0x505bad
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.004a5a70
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x505d2f
mov dword [esp + 0x4c], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00505960
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x74]
mov dword [esp], edx
call fcn.00505960
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x150], edx
mov edx, dword [0xe8ff30]
test edx, edx
jne 0x505d1a
mov edx, dword [esp + 0x5c]
mov dword [ebx + 0x154], edx
mov dword [ebx + 0x158], ecx
mov ecx, dword [0xe8ff30]
test ecx, ecx
jne 0x505d0d
mov dword [ebx + 0x15c], eax
lea eax, [0x9ba320]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x91dd40]
mov dword [esp + 8], eax
lea eax, [0x9ff594]
mov dword [esp + 0xc], eax
call fcn.004157d0
jmp 0x505be9
lea edi, [ebx + 0x15c]
call fcn.00456ab0
jmp 0x505ce2
lea edi, [ebx + 0x154]
mov edx, eax
mov eax, dword [esp + 0x5c]
call fcn.00456ab0
mov eax, edx
jmp 0x505ccc
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.00505960
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x3c], ecx
lea edx, [0x94d5a0]
mov dword [esp], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x8c]
mov dword [esp + 8], edx
call fcn.004089e0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x74]
mov dword [ebx + 0x150], edx
mov edx, dword [0xe8ff30]
test edx, edx
jne 0x505dfe
mov edx, dword [esp + 0x58]
mov dword [ebx + 0x154], edx
mov dword [ebx + 0x158], ecx
mov ecx, dword [0xe8ff30]
test ecx, ecx
jne 0x505df1
mov dword [ebx + 0x15c], eax
lea eax, [0x9ba320]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x91dd40]
mov dword [esp + 8], eax
lea eax, [0x9ff594]
mov dword [esp + 0xc], eax
call fcn.004157d0
jmp 0x505be9
lea edi, [ebx + 0x15c]
call fcn.00456ab0
jmp 0x505dc6
lea edi, [ebx + 0x154]
mov edx, eax
mov eax, dword [esp + 0x58]
call fcn.00456ab0
mov eax, edx
jmp 0x505db0
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x70
ret
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], ecx
add esp, 0x70
ret
mov eax, dword [esp + 0x74]
mov dword [esp], eax
call fcn.004f2680
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x505e5c
mov eax, dword [esp + 0x74]
xor ebx, ebx
xor edx, edx
jmp 0x505afe
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x70
ret
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 0x13c]
mov ebx, dword [esp + 0x84]
mov dword [esp], ebx
mov dword [esp + 4], edx
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 8]
test ecx, ecx
jne 0x505f6b
test ebx, ebx
jne 0x505eb0
mov eax, edx
mov ecx, ebx
jmp 0x505a5b
mov dword [esp + 0x50], edx
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
call fcn.004a58b0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
test eax, eax
jne 0x505ee5
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x30]
jmp 0x505ea7
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], ecx
lea eax, [0x95b680]
mov dword [esp], eax
call fcn.0040af00
mov edi, dword [esp + 4]
mov dword [edi + 4], 4
mov eax, dword [0xe8ff30]
test eax, eax
jne 0x505f5e
lea ecx, [0x9cb9f0]
mov dword [edi], ecx
mov ecx, dword [esp + 0x40]
mov dword [edi + 8], ecx
mov ecx, dword [0xe8ff30]
test ecx, ecx
jne 0x505f48
mov eax, dword [esp + 0x60]
mov dword [edi + 0xc], eax
lea eax, [0xaa57b0]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edi
add esp, 0x70
ret
lea ecx, [edi + 0xc]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x60]
call fcn.00456ab0
mov edi, edx
jmp 0x505f30
lea eax, [0x9cb9f0]
call fcn.00456ab0
jmp 0x505f18
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x70
ret
nop
lea eax, [0x94b060]
mov dword [esp], eax
call fcn.0040af00
mov edi, dword [esp + 4]
mov eax, dword [0xe8ff30]
test eax, eax
jne 0x5061e1
mov ebx, dword [esp + 0x74]
mov dword [edi], ebx
mov dword [esp + 0x6c], edi
mov ebp, dword [esp + 0x88]
test ebp, ebp
jne 0x5061af
mov esi, dword [esp + 0x80]
test esi, esi
jne 0x50617d
xor eax, eax
xor ecx, ecx
mov edx, ebp
mov ebp, dword [ebx + 0x14c]
mov esi, dword [ebx + 0x148]
cmp ebp, 4
jne 0x50603b
cmp dword [esi], 0x78696e75
jne 0x50603b
mov ebp, dword [ebx + 0x148]
mov esi, dword [ebx + 0x14c]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
lea eax, [0xaaae90]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
mov edx, dword [esp + 0x90]
mov eax, dword [edx]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x505a48
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x70
ret
cmp ebp, 8
jne 0x506051
cmp dword [esi], 0x78696e75
jne 0x506051
cmp dword [esi + 4], 0x6d617267
je 0x505fe5
mov dword [esp + 0x44], eax
mov dword [esp + 0x64], ecx
cmp ebp, 0xa
je 0x506126
mov ebp, dword [ebx + 0x14c]
mov esi, dword [ebx + 0x148]
lea edi, [ebp - 1]
cmp edi, ebp
jae 0x5061f1
movzx edi, byte [ebp + esi - 1]
xchg edi, eax
cmp al, 0x34
xchg edi, eax
jne 0x506098
mov edi, dword [esp + 0x6c]
mov edi, ebp
mov ebp, esi
mov esi, edi
mov edi, dword [esp + 0x6c]
jmp 0x505ff1
xchg edi, eax
cmp al, 0x36
xchg edi, eax
je 0x506085
cmp dword [ebx + 0x13c], 2
jne 0x5060e7
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
lea eax, [0x9ca5d7]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.00443570
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
jmp 0x505ff1
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
lea eax, [0x9ca5d9]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.00443570
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
jmp 0x505ff1
mov dword [esp], esi
lea eax, [0x9d17bc]
mov dword [esp + 4], eax
mov dword [esp + 8], ebp
call fcn.00402350
movzx eax, byte [esp + 0xc]
test al, al
je 0x506161
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x6c]
jmp 0x505fe5
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x88]
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x6c]
jmp 0x506062
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x84]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x6c]
jmp 0x505fca
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x8c]
mov dword [esp], ecx
call eax
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x74]
mov ebp, dword [esp + 0x88]
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x6c]
jmp 0x505fca
mov eax, dword [esp + 0x74]
call fcn.00456ab0
mov ebx, eax
jmp 0x505fa4
mov eax, edi
mov ecx, ebp
call fcn.00456b30
nop
call fcn.00455270
jmp fcn.00505a20