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

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
cmp dword [esi + 8], 0
push edi
jne 0x40bb5e
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 4]
mov edi, dword [esp + 0x18]
push eax
push ecx
push 1
push edi
mov ecx, esi
call fcn.00409f10
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 0x10
mov edx, dword [esi + 4]
mov edi, dword [edx]
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40bb70
cmp ebp, esi
je 0x40bb76
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebx
mov ebx, dword [esp + 0x28]
cmp ebx, edi
jne 0x40bbb5
mov edi, dword [esp + 0x2c]
lea eax, [ebx + 0xc]
push eax
push edi
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
je 0x40bd0f
push edi
mov edi, dword [esp + 0x24]
push ebx
push 1
push edi
mov ecx, esi
call fcn.00409f10
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 0x10
test ebp, ebp
mov edi, dword [esi + 4]
je 0x40bbc0
cmp ebp, esi
je 0x40bbc6
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
cmp ebx, edi
mov edi, dword [esp + 0x2c]
jne 0x40bc0c
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 8]
add eax, 0xc
push edi
push eax
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
je 0x40bd0f
mov edx, dword [esi + 4]
mov eax, dword [edx + 8]
push edi
mov edi, dword [esp + 0x24]
push eax
push 0
push edi
mov ecx, esi
call fcn.00409f10
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 0x10
lea eax, [ebx + 0xc]
push eax
push edi
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
je 0x40bc81
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
call fcn.00408130
mov ecx, dword [esp + 0x28]
add ecx, 0xc
push edi
push ecx
mov ecx, esi
call fcn.00407d50
test al, al
je 0x40bc81
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 8]
cmp byte [edx + 0x2d], 0
push edi
mov edi, dword [esp + 0x24]
mov ecx, esi
je 0x40bc6c
push eax
push 0
push edi
call fcn.00409f10
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 0x10
push ebx
push 1
push edi
call fcn.00409f10
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 0x10
lea eax, [ebx + 0xc]
push edi
push eax
call dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator__char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 8
test al, al
je 0x40bd0f
mov eax, dword [esi + 4]
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
call fcn.00408050
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x28]
call fcn.00407d70
test al, al
mov ebp, dword [esp + 0x28]
jne 0x40bcd5
lea edx, [ebp + 0xc]
push edx
push edi
mov ecx, esi
call fcn.00407d50
test al, al
je 0x40bd0f
mov eax, dword [ebx + 8]
cmp byte [eax + 0x2d], 0
push edi
mov edi, dword [esp + 0x24]
mov ecx, esi
je 0x40bcfa
push ebx
push 0
push edi
call fcn.00409f10
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 0x10
push ebp
push 1
push edi
call fcn.00409f10
pop ebx
pop ebp
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret 0x10
push edi
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.0040aee0
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
pop ebx
pop ebp
mov dword [ecx], edx
mov eax, dword [eax + 4]
pop edi
mov dword [ecx + 4], eax
mov eax, ecx
pop esi
add esp, 0xc
ret 0x10