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

Disassembly:
push 0xffffffffffffffff
push 0x52c520
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov dword [esp + 0x20], edx
mov esi, ecx
mov eax, dword [esp + 0xac]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], ax
mov dword [esp + 0xa4], eax
push 0x3c
push eax
lea eax, [esp + 0x34]
push eax
call sub.MSVCR120.dll_memset
mov edi, dword [esi + 0x10]
xor ecx, ecx
mov ebx, dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new___unsigned_int_]
add edi, 0x20
mov eax, edi
mov dword [esp + 0x38], 0x3c
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call ebx
lea ebp, [edi + edi]
mov dword [esp + 0x4c], eax
push ebp
push 0
push eax
call sub.MSVCR120.dll_memset
lea eax, [edi - 1]
xor ecx, ecx
mov dword [esp + 0x5c], eax
mov edx, 2
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call ebx
push ebp
push 0
push eax
mov dword [esp + 0x5c], eax
call sub.MSVCR120.dll_memset
lea eax, [edi - 1]
xor ecx, ecx
mov dword [esp + 0x60], eax
mov edx, 2
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call ebx
push ebp
push 0
push eax
mov dword [esp + 0x84], eax
call sub.MSVCR120.dll_memset
lea eax, [edi - 1]
xor ecx, ecx
mov dword [esp + 0x88], eax
mov edx, 2
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call ebx
add esp, 0x40
mov dword [esp + 0x50], eax
push ebp
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [edi - 1]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x54], eax
je 0x5005dc
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call ebx
push ebp
push 0
push eax
mov dword [esp + 0x68], eax
call sub.MSVCR120.dll_memset
lea eax, [edi - 1]
add esp, 0x10
mov dword [esp + 0x5c], eax
cmp dword [esi + 0x14], 8
jb 0x5005e6
mov eax, dword [esi]
jmp 0x5005e8
mov eax, esi
lea ecx, [esp + 0x2c]
push ecx
push ecx
push dword [esi + 0x10]
push eax
call fcn.004eb7b0
mov ecx, eax
call fcn.004ecd90
mov edi, eax
test edi, edi
jne 0x50067c
mov edx, esi
lea ecx, [esp + 0x68]
call fcn.005014a0
mov byte [esp + 0xa4], 1
lea ecx, [esp + 0x2c]
cmp dword [esp + 0x7c], 8
lea eax, [esp + 0x68]
push ecx
cmovae eax, dword [esp + 0x6c]
push ecx
push dword [esp + 0x80]
push eax
call fcn.004eb7b0
mov ecx, eax
call fcn.004ecd90
mov edi, eax
mov byte [esp + 0xa4], 0
cmp dword [esp + 0x7c], 8
jb 0x50065d
push dword [esp + 0x68]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
test edi, edi
je 0x500760
mov edx, dword [esp + 0x3c]
cmp word [edx], 0
jne 0x50068a
xor ecx, ecx
jmp 0x50069f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x500690
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.00405240
mov edx, dword [esp + 0x30]
cmp word [edx], 0
jne 0x5006b8
xor ecx, ecx
jmp 0x5006cf
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5006c0
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x24]
push edx
call fcn.00405240
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x48]
movzx eax, word [esp + 0x44]
mov dword [ecx], eax
cmp word [edx], 0
jne 0x5006f3
xor ecx, ecx
jmp 0x50070f
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x500700
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x500700
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.00405240
mov edx, dword [esp + 0x50]
cmp word [edx], 0
jne 0x500728
xor eax, eax
jmp 0x50073f
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x500730
sub eax, esi
sar eax, 1
mov ecx, dword [esp + 0x1c]
push eax
push edx
call fcn.00405240
mov eax, dword [esp + 0x58]
test eax, eax
je 0x500760
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x500760
push eax
call fcn.00404910
push dword [esp + 0x3c]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
call esi
push dword [esp + 0x34]
call esi
push dword [esp + 0x50]
call esi
push dword [esp + 0x5c]
call esi
mov eax, dword [esp + 0x68]
add esp, 0x10
test eax, eax
je 0x50078f
push eax
call esi
add esp, 4
test edi, edi
setne al
mov dword [esp + 0xa4], 0xffffffff
xor ecx, ecx
mov dword [esp + 0x94], 7
mov dword [esp + 0x90], 0
mov word [esp + 0x80], cx
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00505b1e
add esp, 0x94
ret