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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bd10a
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x669404]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x669404]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov ebx, ecx
xor eax, eax
mov edi, edx
mov dword [esp + 0x14], eax
mov ecx, 7
xor edx, edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
mov word [esp + 0x58], dx
mov dword [esp + 0x110], eax
mov dword [esp + 0x88], ecx
mov dword [esp + 0x84], eax
mov word [esp + 0x74], ax
mov byte [esp + 0x110], 1
lea ecx, [esp + 0x74]
push ecx
lea ecx, [esp + 0x5c]
call fcn.00514fa0
xor ebx, ebx
add esp, 4
cmp dword [esp + 0x84], ebx
jne 0x5145a2
mov edx, dword [esp + 0x68]
push 0xffffffffffffffff
dec edx
push edx
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x64]
call fcn.00403c90
mov byte [esp + 0x110], 2
mov ecx, dword [eax + 0x10]
push 1
push 0x61979c
push ecx
push ebx
mov ecx, eax
mov dword [esp + 0x24], 1
call fcn.00416c10
mov byte [esp + 0x13], 1
test eax, eax
jne 0x5145a6
mov byte [esp + 0x13], bl
mov dword [esp + 0x110], 1
test byte [esp + 0x14], 1
je 0x5145e8
and dword [esp + 0x14], 0xfffffffe
cmp dword [esp + 0x50], 8
jb 0x5145d2
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 7
xor eax, eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], ax
jmp 0x5145ed
mov esi, 7
cmp byte [esp + 0x13], bl
je 0x514603
push 1
push 0x61979c
lea ecx, [esp + 0x60]
call fcn.004044f0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x110], 3
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x78]
call fcn.005149f0
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x110], 4
lea edx, [esp + 0x2c]
push edx
mov ecx, edi
call fcn.005149f0
mov edi, dword [esp + 0x30]
add esp, 4
cmp edi, dword [esp + 0x30]
je 0x514859
lea esp, [esp]
push 0xffffffffffffffff
push ebx
xor eax, eax
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
call fcn.00406730
mov byte [esp + 0x110], 5
push 0xffffffffffffffff
xor ecx, ecx
push ebx
lea edx, [edi + 0x1c]
mov word [esp + 0x98], cx
push edx
lea ecx, [esp + 0x9c]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
call fcn.00406730
mov byte [esp + 0x110], 6
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x20]
je 0x5146dd
mov edx, esi
lea ecx, [esp + 0x3c]
call fcn.0041e810
test al, al
jne 0x5149c8
add esi, 0x38
cmp esi, dword [esp + 0x20]
jne 0x5146c1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x44]
xor edx, edx
mov esi, 7
push eax
lea ecx, [esp + 0xb8]
mov dword [esp + 0xcc], esi
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], dx
call fcn.00406730
mov byte [esp + 0x110], 7
push 0xffffffffffffffff
xor ecx, ecx
push ebx
lea edx, [esp + 0x98]
mov word [esp + 0xd0], cx
push edx
lea ecx, [esp + 0xd4]
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], ebx
call fcn.00406730
mov byte [esp + 0x110], 0xa
lea ecx, [esp + 0xac]
lea ebx, [esp + 0x1c]
call fcn.005155d0
mov byte [esp + 0x110], 0xc
cmp dword [esp + 0xdc], 8
jb 0x514780
mov eax, dword [esp + 0xc8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ebx, 7
xor esi, esi
xor ecx, ecx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd8], esi
mov word [esp + 0xc8], cx
mov byte [esp + 0x110], 6
cmp dword [esp + 0xc0], 8
jb 0x5147c2
mov edx, dword [esp + 0xac]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xbc], esi
mov word [esp + 0xac], ax
xor ebx, ebx
mov byte [esp + 0x110], 5
cmp dword [esp + 0xa4], 8
jb 0x5147ff
mov ecx, dword [esp + 0x90]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov esi, 7
xor edx, edx
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa0], ebx
mov word [esp + 0x90], dx
mov byte [esp + 0x110], 4
cmp dword [esp + 0x50], 8
jb 0x514839
mov eax, dword [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
add edi, 0x38
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], cx
cmp edi, dword [esp + 0x30]
jne 0x514660
mov edi, dword [esp + 0x2c]
lea ebx, [esp + 0x1c]
lea ecx, [esp + 0xe4]
call fcn.00514e90
mov byte [esp + 0x110], 0xe
mov esi, dword [esp + 0x18]
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea edx, [esp + 0x60]
push edx
mov ecx, esi
call fcn.00406730
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xec]
push eax
mov ecx, esi
call fcn.00406070
mov byte [esp + 0x110], 4
cmp dword [esp + 0xf8], 8
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x5148bd
mov ecx, dword [esp + 0xe4]
push ecx
call esi
add esp, 4
xor edx, edx
mov dword [esp + 0xf8], 7
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], dx
mov byte [esp + 0x110], 3
cmp edi, ebx
je 0x5148fe
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push edi
call fcn.00515b70
add esp, 0xc
push edi
call esi
add esp, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov byte [esp + 0x110], 1
mov edi, dword [esp + 0x1c]
cmp edi, ebx
je 0x514933
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push edx
push eax
push edi
call fcn.00515b70
add esp, 0xc
push edi
call esi
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x110], bl
cmp dword [esp + 0x88], 8
jb 0x51495a
mov ecx, dword [esp + 0x74]
push ecx
call esi
add esp, 4
xor edx, edx
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], ebx
mov word [esp + 0x74], dx
mov dword [esp + 0x110], 0xffffffff
cmp dword [esp + 0x6c], 8
jb 0x51498f
mov eax, dword [esp + 0x58]
push eax
call esi
add esp, 4
xor ecx, ecx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], cx
mov al, 1
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.00546bdc
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp byte [eax], bl
je 0x5147dc
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esi + 0x1c]
call fcn.00406730
jmp 0x5147dc