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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5151a0
sub esp, 0x4c
mov eax, dword [esp + 0x5c]
cmp eax, 4
jne 0x514ec7
mov ecx, dword [esp + 0x58]
cmp dword [ecx], 0x78696e75
jne 0x515170
mov edx, 1
jmp 0x514f36
cmp eax, 8
jne 0x514ef0
mov ecx, dword [esp + 0x58]
cmp dword [ecx], 0x78696e75
jne 0x515170
cmp dword [ecx + 4], 0x6d617267
jne 0x515170
mov edx, 2
jmp 0x514f36
cmp eax, 0xa
je 0x514efe
mov ecx, dword [esp + 0x58]
jmp 0x515170
mov eax, dword [esp + 0x58]
mov dword [esp], eax
lea ecx, [0x703af0]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xa
call fcn.004040c0
movzx eax, byte [esp + 0xc]
test al, al
je 0x515168
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, 5
mov ebx, dword [esp + 0x74]
cmp ebx, 4
jne 0x515035
mov ebp, dword [esp + 0x70]
cmp dword [ebp], 0x6c616964
jne 0x51510c
mov dword [esp + 0x40], edx
mov ebx, dword [esp + 0x60]
test ebx, ebx
jne 0x514f66
mov ebp, dword [esp + 0x64]
jmp 0x514fa1
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 4]
test al, al
je 0x514f8d
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
xor ebx, ebx
xor ebp, ebp
jmp 0x514fa1
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
test esi, esi
jne 0x514faf
mov edi, dword [esp + 0x6c]
jmp 0x515002
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebx
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
call eax
movzx eax, byte [esp + 4]
test al, al
je 0x514fe6
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
xor esi, esi
xor edi, edi
jmp 0x515002
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x68]
mov edi, dword [esp + 0x6c]
test esi, esi
jne 0x51506b
cmp edx, 2
jne 0x51500f
test ebx, ebx
jne 0x51506b
mov eax, dword [0x8a7318]
mov ecx, dword [0x8a731c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x4c
ret
cmp ebx, 6
jne 0x515108
mov ebp, dword [esp + 0x70]
cmp dword [ebp], 0x7473696c
jne 0x51510c
cmp word [ebp + 4], 0x6e65
jne 0x51510c
mov ebx, dword [esp + 0x60]
mov esi, dword [esp + 0x68]
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x50]
mov dword [esp], edi
mov edi, dword [esp + 0x54]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x30], eax
call fcn.00510f00
mov eax, dword [esp + 0x38]
test eax, eax
je 0x5150e6
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x4c
ret
mov eax, dword [esp + 0x34]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x4c
ret
mov ebp, dword [esp + 0x70]
mov dword [esp], 0
lea eax, [0x70575f]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
call fcn.00455df0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00480a00
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x4c
ret
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0046b860
mov eax, dword [esp + 8]
mov dword [esp + 0x7c], 0
lea ecx, [0x734920]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
add esp, 0x4c
ret
call fcn.00475ee0
jmp fcn.00514e90