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

Disassembly:
push 0xffffffffffffffff
push 0x4433d6
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [esp + 0xd8]
test ebx, ebx
je 0x439a53
lea eax, [esp + 0x24]
push eax
call fcn.0043c460
lea esi, [esp + 0x24]
mov dword [esp + 0xcc], 0
call fcn.0043c4c0
mov ecx, dword [esp + 0xdc]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Empty]
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4398f0
sub eax, edx
lea ecx, [esp + 0x44]
sar eax, 1
push ecx
lea ebp, [eax + 1]
call fcn.004337a0
mov byte [esp + 0xcc], 1
mov esi, dword [esp + 0xd4]
lea edx, [esp + 0x1c]
push edx
lea ebx, [esi + 0x78]
mov dword [esp + 0x20], edi
call fcn.0043c3b0
mov eax, dword [eax]
xor ebx, ebx
mov dword [esp + 0x1c], eax
cmp eax, ebx
jne 0x439989
lea eax, [esp + 0x44]
push eax
push ebx
push edi
mov eax, esi
call fcn.00438900
test eax, eax
je 0x439a5a
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
push ecx
push edi
push esi
call fcn.00439700
lea esi, [esp + 0x44]
call fcn.004380b0
mov ebx, dword [esp + 0xd4]
lea edx, [esp + 0x1c]
push edx
add ebx, 0x78
mov dword [esp + 0x20], edi
call fcn.0043c3b0
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4399fd
movzx ecx, word [eax + 4]
mov esi, dword [esp + 0x30]
mov edi, dword [eax]
lea ebp, [ecx + ebp + 1]
mov dword [esp + 0x18], ebp
test esi, esi
jne 0x4399a3
xor edx, edx
jmp 0x4399ac
mov edx, dword [esp + 0x38]
sub edx, esi
sar edx, 2
mov ecx, dword [esp + 0x34]
mov ebx, ecx
sub ebx, esi
sar ebx, 2
cmp ebx, edx
jae 0x4399c6
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x34], ecx
jmp 0x4399eb
mov ebx, ecx
cmp esi, ecx
jbe 0x4399d2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x24]
push ebx
push eax
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x34]
call fcn.004375e0
cmp edi, 0xffffffff
je 0x439ab5
mov ebp, dword [esp + 0x18]
jmp 0x439914
lea esi, [esp + 0x74]
call fcn.0042cea0
mov ecx, dword [esp + 0x74]
push ecx
call sub.mfc90u.dll_delete
add esp, 4
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x30]
xor esi, esi
cmp eax, esi
je 0x439a3a
push eax
call sub.mfc90u.dll_delete
add esp, 4
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call sub.mfc90u.dll_delete
add esp, 4
xor eax, eax
jmp 0x439c31
lea esi, [esp + 0x74]
call fcn.0042cea0
mov eax, dword [esp + 0x74]
push eax
call sub.mfc90u.dll_delete
add esp, 4
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x439a95
push eax
call sub.mfc90u.dll_delete
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call sub.mfc90u.dll_delete
add esp, 4
xor eax, eax
jmp 0x439c31
mov ecx, dword [esp + 0xdc]
push ebp
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov ebx, dword [esp + 0x34]
mov edi, eax
mov eax, dword [esp + 0x30]
cmp eax, ebx
jbe 0x439adb
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
mov esi, eax
cmp eax, dword [esp + 0x34]
jbe 0x439af1
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
test ebp, ebp
je 0x439afb
cmp ebp, dword [esp + 0x24]
je 0x439b01
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebx, esi
je 0x439bb0
mov dword [esp + 0x40], ebx
test ebp, ebp
jne 0x439b9e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0xc]
ja 0x439b28
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
add ebx, 0xfffffffc
test ebp, ebp
jne 0x439ba6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x439b42
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [ebx]
mov eax, dword [esp + 0x18]
lea edx, [esi + 6]
push edx
push eax
push edi
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
movzx ecx, word [esi + 4]
lea edi, [edi + ecx*2]
mov edx, 0x5c
mov word [edi], dx
movzx eax, word [esi + 4]
or ecx, 0xffffffff
sub ecx, eax
add dword [esp + 0x24], ecx
add esp, 0xc
add edi, 2
test ebp, ebp
jne 0x439bab
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
mov edx, dword [esp + 0x20]
cmp edx, dword [eax + 0xc]
ja 0x439b91
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
jmp 0x439ae3
mov eax, dword [ebp]
jmp 0x439b1d
mov eax, dword [ebp]
jmp 0x439b37
mov eax, dword [ebp]
jmp 0x439b82
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push edi
call dword [sym.imp.MSVCR90.dll_wcscpy_s]
mov ecx, dword [esp + 0xe8]
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::ReleaseBuffer]
lea esi, [esp + 0x74]
call fcn.0042cea0
mov edx, dword [esp + 0x74]
push edx
call sub.mfc90u.dll_delete
add esp, 4
lea ecx, [esp + 0x48]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x44]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x30]
xor esi, esi
cmp eax, esi
je 0x439c13
push eax
call sub.mfc90u.dll_delete
add esp, 4
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call sub.mfc90u.dll_delete
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xbc
ret 0xc