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

Disassembly:
push 0xffffffffffffffff
push 0x540739
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x58ab78]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push esi
push edi
mov eax, dword [0x58ab78]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x14], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov dword [esp + 0x18], esi
mov byte [esi], 0
mov edx, dword [edi + 0x41c]
mov dword [esp + 0x70], 0
mov dword [esp + 0x14], 1
cmp edx, 3
ja case.default.0x500f5e
jmp dword [edx*4 + 0x50117c]
push ecx
push eax
mov ecx, esi
call fcn.004f6db0
xor ecx, ecx
cmp dword [esi + 0x10], ecx
jbe 0x500fa2
mov edx, dword [esi + 0x14]
cmp edx, 0x10
jb 0x500f81
mov eax, dword [esi]
jmp 0x500f83
mov eax, esi
movzx eax, byte [eax + ecx]
mov bl, byte [eax + edi + 0x104]
cmp edx, 0x10
jb 0x500f97
mov eax, dword [esi]
jmp 0x500f99
mov eax, esi
mov byte [eax + ecx], bl
inc ecx
cmp ecx, dword [esi + 0x10]
jb 0x500f75
mov eax, dword [esi + 0x14]
cmp eax, 0x10
jb 0x500fae
mov edx, dword [esi]
jmp 0x500fb0
mov edx, esi
mov ebx, dword [esi + 0x10]
cmp eax, 0x10
jb 0x500fbc
mov ecx, dword [esi]
jmp 0x500fbe
mov ecx, esi
lea eax, [edx + ebx]
push eax
push ecx
lea eax, [esp + 0x54]
mov ecx, edi
push eax
call fcn.00500e80
mov edi, eax
cmp esi, edi
je 0x500ffe
cmp dword [esi + 0x14], 0x10
jb 0x500fe5
push dword [esi]
call fcn.0047d4a0
add esp, 4
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], 0
push edi
mov byte [esi], 0
call fcn.0042ff70
cmp dword [esp + 0x60], 0x10
jb case.default.0x500f5e
push dword [esp + 0x4c]
call fcn.0047d4a0
add esp, 4
jmp case.default.0x500f5e
push ecx
push eax
lea eax, [esp + 0x24]
mov ecx, edi
push eax
call fcn.00500e80
push eax
mov ecx, esi
call fcn.0043a430
cmp dword [esp + 0x30], 0x10
jb 0x501043
push dword [esp + 0x1c]
call fcn.0047d4a0
add esp, 4
movsx eax, byte [edi + 0x420]
mov ecx, esi
push eax
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call fcn.00433270
jmp case.default.0x500f5e
push ecx
push eax
lea eax, [esp + 0x3c]
mov ecx, edi
push eax
call fcn.00500e80
push eax
mov ecx, esi
call fcn.0043a430
cmp dword [esp + 0x48], 0x10
jb 0x501095
push dword [esp + 0x34]
call fcn.0047d4a0
add esp, 4
mov edx, dword [esi + 0x10]
xor eax, eax
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
test edx, edx
je 0x5010d4
mov ebx, dword [esi + 0x14]
cmp ebx, 0x10
jb 0x5010bf
mov ecx, dword [esi]
jmp 0x5010c1
mov ecx, esi
mov dl, byte [edi + 0x420]
cmp byte [ecx + eax], dl
mov edx, dword [esi + 0x10]
je 0x5010d4
inc eax
cmp eax, edx
jb 0x5010b6
cmp edx, eax
jae 0x5010e2
push str.invalid_string_position
call fcn.004c38be
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], eax
jb 0x5010ef
mov ecx, dword [esi]
jmp 0x5010f1
mov ecx, esi
mov byte [ecx + eax], 0
cmp dword [esi + 0x10], 0
jne 0x50115a
lea eax, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov word [esp + 0x1c], 0
mov dword [esp + 0x2c], 1
cmp esi, eax
je 0x50115a
cmp dword [esi + 0x14], 0x10
jb 0x50112a
push dword [esi]
call fcn.0047d4a0
add esp, 4
lea eax, [esp + 0x1c]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov byte [esi], 0
call fcn.0042ff70
cmp dword [esp + 0x30], 0x10
jb 0x50115a
push dword [esp + 0x1c]
call fcn.0047d4a0
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.0049f3ce
add esp, 0x64
ret 0xc