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

Disassembly:
push 0xffffffffffffffff
push 0x50d48a
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x564020]
xor eax, esp
mov dword [esp + 0x64], eax
push ebp
push esi
push edi
mov eax, dword [0x564020]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
lea ecx, [ebx + 0x3c]
push eax
call fcn.00413f80
mov dword [esp + 0x80], 0
lea esp, [esp]
mov eax, dword [esp + 0x30]
mov edi, dword [eax + 0x10]
mov ebp, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, eax
cmp dword [eax + 0xc], edi
jbe 0x413746
call ebp
mov eax, dword [esi]
test eax, eax
je 0x413752
cmp eax, dword [esp + 0x34]
je 0x413754
call ebp
cmp edi, dword [esp + 0x38]
je 0x41387a
lea ecx, [esp + 0x3c]
push ecx
lea esi, [esp + 0x18]
call fcn.00414030
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x84], 1
call fcn.004140f0
mov byte [esp + 0x80], 2
mov esi, dword [ebx + 0x60]
cmp esi, dword [ebx + 0x64]
jbe 0x413790
call ebp
mov ebp, dword [ebx + 0x54]
mov edi, dword [ebx + 0x64]
cmp dword [ebx + 0x60], edi
jbe 0x4137a1
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x4137ac
cmp eax, ebp
je 0x4137b2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp edi, esi
je 0x4137ee
cmp dword [esp + 0x6c], 0
jbe 0x413825
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test ebp, ebp
jne 0x413820
call edi
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4137d2
call edi
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
lea edx, [esp + 0x58]
push edx
lea edx, [esp + 0x40]
push edx
lea edx, [esp + 0x1c]
push edx
call eax
test al, al
je 0x413859
lea esi, [esp + 0x14]
call fcn.004142b0
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x80], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x413730
mov eax, dword [ebp]
jmp 0x4137cb
test ebp, ebp
jne 0x413870
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x41383c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
call edx
test al, al
jne 0x4137ee
mov edi, dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test ebp, ebp
jne 0x413875
call edi
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x413868
call edi
add esi, 4
jmp 0x413793
mov eax, dword [ebp]
jmp 0x413831
mov eax, dword [ebp]
jmp 0x413861
lea ecx, [esp + 0x14]
mov dword [esp + 0x80], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00419fc4
add esp, 0x74
ret