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

Disassembly:
push 0xffffffffffffffff
push 0x4226e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43893c]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x30], edi
cmp byte [esp + 0x78], 0
mov byte [esp + 0x17], 0
je 0x413813
mov ebp, dword [esp + 0x70]
test ebp, ebp
je 0x413817
lea eax, [esp + 0x70]
push eax
call fcn.00413b70
test eax, eax
js 0x413b5a
mov ebp, dword [esp + 0x70]
mov eax, dword [esp + 0x64]
lea ecx, [edi + 0xc]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00414a70
mov esi, eax
cmp esi, dword [edi + 0xc]
je 0x413873
mov eax, dword [0x43944c]
test al, 1
jne 0x413854
or eax, 1
mov dword [0x43944c], eax
push dword [esi + 0x10]
push dword [esp + 0x68]
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
sets al
test al, al
jne 0x413873
mov dword [esp + 0x24], esi
jmp 0x41387a
mov eax, dword [edi + 0xc]
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x68]
lea esi, [esp + 0x24]
mov esi, dword [esi]
cmp esi, dword [edi + 0xc]
jne 0x4139ad
cmp byte [esp + 0x78], 0
je 0x4138a8
lea eax, [esp + 0x64]
mov ecx, edi
push eax
call fcn.00413b70
test eax, eax
js 0x413b5a
mov esi, dword [edi + 0x20]
inc esi
mov dword [esp + 0x20], 0
mov dword [edi + 0x20], esi
test ebp, ebp
je 0x4138ca
test ebx, ebx
je 0x4138c6
cmp dword [esp + 0x6c], 0
jne 0x4138ca
mov dword [esp + 0x20], ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00414880
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x5c], 0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
call fcn.00414880
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x1c], edx
push eax
push dword [eax]
lea eax, [esp + 0x2c]
mov byte [esp + 0x64], 2
push eax
lea ecx, [esp + 0x24]
call fcn.00414c20
push dword [esp + 0x18]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
lea eax, [esp + 0x40]
lea ecx, [edi + 0xc]
push eax
call fcn.00412930
push eax
add eax, 0x10
lea ecx, [edi + 0xc]
push eax
push 0
lea eax, [esp + 0x30]
push eax
call fcn.004130a0
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x4c]
mov esi, dword [esp + 0x24]
push eax
mov byte [esp + 0x1b], 1
push dword [eax]
lea eax, [esp + 0x2c]
mov dword [esp + 0x64], 0xffffffff
push eax
call fcn.00414c20
push dword [esp + 0x4c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
test ebx, ebx
je 0x413b50
cmp dword [esp + 0x6c], 0
je 0x413b50
lea eax, [esp + 0x24]
mov dword [esp + 0x24], ebx
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], 0
lea ebp, [esi + 0x1c]
mov dword [esp + 0x30], 0
push eax
mov ecx, ebp
call fcn.004152a0
inc dword [edi + 0x20]
mov eax, dword [edi + 0x20]
mov esi, dword [esp + 0x18]
mov cl, byte [esp + 0x74]
mov dword [esp + 0x20], eax
mov eax, dword [ebp]
cmp esi, eax
je 0x413aab
cmp byte [edi + 0x1d], 0
je 0x413ab9
test cl, cl
je 0x413aab
mov edi, dword [esp + 0x20]
mov dword [esp + 0x24], 0
mov eax, dword [0x439448]
mov ecx, dword [esi + 0x10]
test al, 1
jne 0x413a37
or eax, 1
mov dword [0x439448], eax
push ecx
push ebx
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
js 0x413a68
mov eax, dword [esi + 0x18]
cmp eax, edi
jge 0x413a56
mov edi, eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x18]
call fcn.00413690
mov esi, dword [esp + 0x18]
cmp esi, dword [ebp]
jne 0x413a23
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x30]
test esi, esi
je 0x413a94
mov ecx, dword [esp + 0x70]
push ecx
mov ecx, edi
call fcn.00413da0
lea eax, [esp + 0x70]
mov dword [esp + 0x70], esi
push eax
mov ecx, edi
call fcn.00413b70
push 0
push ebx
push dword [esp + 0x6c]
mov ecx, edi
call fcn.00413c30
mov eax, dword [ebp]
mov esi, eax
mov cl, byte [esp + 0x74]
cmp byte [edi + 0x1d], 0
je 0x413ab9
test cl, cl
jne 0x413ab9
mov cl, 1
jmp 0x413abb
xor cl, cl
cmp byte [esp + 0x78], 0
mov byte [esp + 0x74], cl
je 0x413af2
test cl, cl
jne 0x413ace
cmp esi, eax
jne 0x413ae2
lea eax, [esp + 0x68]
mov ecx, edi
push eax
call fcn.00413b70
test eax, eax
js 0x413b5a
mov ebx, dword [esp + 0x68]
lea eax, [esp + 0x6c]
mov ecx, edi
push eax
call fcn.00413b70
test eax, eax
js 0x413b5a
cmp esi, dword [ebp]
je 0x413afe
cmp byte [esp + 0x74], 0
je 0x413b49
mov ecx, dword [esp + 0x70]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], 0
cmovne eax, ecx
mov ecx, ebp
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x30]
push eax
call fcn.004128f0
push eax
add eax, 0x10
mov ecx, ebp
push eax
push 0
lea eax, [esp + 0x3c]
push eax
call fcn.00412fa0
mov esi, dword [esp + 0x30]
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x6c]
mov dword [esi + 0x1c], eax
xor eax, eax
cmp byte [esp + 0x17], al
setne al
inc eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0x18