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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5017c7
sub esp, 0x6c
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x50153b
mov eax, dword [esp + 0x7c]
test eax, eax
jne 0x50143b
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x84]
test edx, edx
je 0x501400
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x20]
mov ecx, dword [esp + 0x70]
mov ebx, dword [ecx + 0x134]
mov ebp, dword [esp + 0x88]
mov dword [esp], ebp
mov dword [esp + 4], ebx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
test eax, eax
jne 0x5013ee
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebp
call fcn.004f61c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
test eax, eax
jne 0x5013dc
mov eax, dword [esp + 0x70]
mov byte [eax + 0x13c], 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x38], ebx
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.004951b0
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0x38]
test edx, edx
je 0x5011ea
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00500f20
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call fcn.00500f20
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 0x148], edx
mov edx, dword [0x770e60]
test edx, edx
jne 0x5011d5
mov edx, dword [esp + 0x54]
mov dword [ebx + 0x14c], edx
mov dword [ebx + 0x150], ecx
mov ecx, dword [0x770e60]
test ecx, ecx
jne 0x5011c8
mov dword [ebx + 0x154], eax
lea eax, [0x5e42a0]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x5bbc00]
mov dword [esp + 8], eax
lea eax, [0x601dd0]
mov dword [esp + 0xc], eax
call fcn.00415180
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
add esp, 0x6c
ret
lea edi, [ebx + 0x154]
call fcn.0045df70
jmp 0x501188
lea edi, [ebx + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x54]
call fcn.0045df70
mov eax, edx
jmp 0x501172
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
call fcn.00495290
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
je 0x5012f8
mov dword [esp + 0x64], ecx
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00500f20
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x68], ecx
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call fcn.00500f20
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 0x148], edx
mov edx, dword [0x770e60]
test edx, edx
jne 0x5012e3
mov edx, dword [esp + 0x50]
mov dword [ebx + 0x14c], edx
mov dword [ebx + 0x150], ecx
mov ecx, dword [0x770e60]
test ecx, ecx
jne 0x5012d6
mov dword [ebx + 0x154], eax
lea eax, [0x5e42a0]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x5bbc00]
mov dword [esp + 8], eax
lea eax, [0x601dd0]
mov dword [esp + 0xc], eax
call fcn.00415180
jmp 0x5011ae
lea edi, [ebx + 0x154]
call fcn.0045df70
jmp 0x5012ab
lea edi, [ebx + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x50]
call fcn.0045df70
mov eax, edx
jmp 0x501295
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.00500f20
mov edx, dword [esp + 4]
mov eax, dword [edx]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x68], ecx
lea edx, [0x5c6ee0]
mov dword [esp], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x88]
mov dword [esp + 8], edx
call fcn.00409320
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x68]
mov ebx, dword [esp + 0x70]
mov dword [ebx + 0x148], edx
mov edx, dword [0x770e60]
test edx, edx
jne 0x5013c7
mov edx, dword [esp + 0x4c]
mov dword [ebx + 0x14c], edx
mov dword [ebx + 0x150], ecx
mov ecx, dword [0x770e60]
test ecx, ecx
jne 0x5013ba
mov dword [ebx + 0x154], eax
lea eax, [0x5e42a0]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [0x5bbc00]
mov dword [esp + 8], eax
lea eax, [0x601dd0]
mov dword [esp + 0xc], eax
call fcn.00415180
jmp 0x5011ae
lea edi, [ebx + 0x154]
call fcn.0045df70
jmp 0x50138f
lea edi, [ebx + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x4c]
call fcn.0045df70
mov eax, edx
jmp 0x501379
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
add esp, 0x6c
ret
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
add esp, 0x6c
ret
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.004f60a0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test eax, eax
jne 0x501429
mov eax, dword [esp + 0x70]
xor ebx, ebx
xor ebp, ebp
jmp 0x5010c3
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
add esp, 0x6c
ret
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x70]
mov edx, dword [ecx + 0x134]
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov dword [esp + 4], edx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 8]
mov esi, dword [esp + 8]
test eax, eax
jne 0x501529
test esi, esi
jne 0x501485
mov eax, esi
mov ecx, ebx
jmp 0x501018
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], ebx
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x10]
mov dword [esp], ecx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.004950d0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x5014be
mov ebx, dword [esp + 0x44]
mov esi, dword [esp + 0x30]
jmp 0x50147c
mov dword [esp + 0x68], ecx
mov dword [esp + 0x64], edx
lea eax, [0x5ca4c0]
mov dword [esp], eax
call fcn.0040b8e0
mov eax, dword [esp + 4]
mov dword [eax + 4], 4
lea ecx, [0x5eb737]
mov dword [eax], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 8], ecx
mov ecx, dword [0x770e60]
test ecx, ecx
jne 0x501517
mov ecx, dword [esp + 0x68]
mov dword [eax + 0xc], ecx
lea ecx, [0x63a148]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], eax
add esp, 0x6c
ret
lea edi, [eax + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x68]
call fcn.0045df70
mov eax, ecx
jmp 0x5014ff
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
add esp, 0x6c
ret
nop
lea eax, [0x5c64e0]
mov dword [esp], eax
call fcn.0040b8e0
mov edi, dword [esp + 4]
mov eax, dword [0x770e60]
test eax, eax
jne 0x5017ad
mov ebx, dword [esp + 0x70]
mov dword [edi], ebx
mov dword [esp + 0x60], edi
mov ebp, dword [esp + 0x84]
test ebp, ebp
jne 0x50177e
mov esi, dword [esp + 0x7c]
test esi, esi
jne 0x50174f
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x58], ecx
mov edx, ebp
mov ebp, dword [ebx + 0x140]
mov esi, dword [ebx + 0x144]
cmp esi, 4
jne 0x5016cb
cmp dword [ebp], 0x78696e75
jne 0x501607
mov ebp, dword [ebx + 0x140]
mov esi, dword [ebx + 0x144]
mov edx, dword [esp + 0x8c]
mov ebx, dword [edx]
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
lea eax, [0x63b2d0]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test eax, eax
je 0x501008
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ebx
add esp, 0x6c
ret
mov ebp, dword [ebx + 0x144]
mov esi, dword [ebx + 0x140]
lea edi, [ebp - 1]
cmp ebp, edi
jbe 0x5017bd
movzx edi, byte [ebp + esi - 1]
xchg edi, eax
cmp al, 0x34
xchg edi, eax
jne 0x50163d
mov edi, dword [esp + 0x60]
mov edi, esi
mov esi, ebp
mov ebp, edi
mov edi, dword [esp + 0x60]
jmp 0x5015b9
xchg edi, eax
cmp al, 0x36
xchg edi, eax
je 0x50162a
cmp dword [ebx + 0x134], 2
jne 0x50168c
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
lea eax, [0x6360e7]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.00448400
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
jmp 0x5015b9
mov dword [esp], 0
mov dword [esp + 4], esi
mov dword [esp + 8], ebp
lea eax, [0x6379cc]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
call fcn.00448400
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
mov edi, dword [esp + 0x60]
jmp 0x5015b9
cmp esi, 8
jne 0x5016ef
cmp dword [ebp], 0x78696e75
jne 0x501607
cmp dword [ebp + 4], 0x6d617267
je 0x5015ad
jmp 0x501607
cmp esi, 0xa
jne 0x501607
mov dword [esp], ebp
lea eax, [0x5ece63]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.00402890
movzx eax, byte [esp + 0xc]
test al, al
je 0x501733
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x60]
jmp 0x5015ad
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x60]
jmp 0x501607
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
call eax
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x60]
jmp 0x501585
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x88]
mov dword [esp], ecx
call eax
mov ecx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x70]
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x7c]
mov edi, dword [esp + 0x60]
jmp 0x501585
mov eax, dword [esp + 0x70]
call fcn.0045df70
mov ebx, eax
jmp 0x501562
mov eax, edi
mov ecx, ebp
call fcn.0045dff0
nop
call fcn.0045ca10
jmp fcn.00500fe0