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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443422
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x455028]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x455028]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
cmp edx, edi
je 0x4387b6
mov eax, edx
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4382f0
sub eax, ebx
sar eax, 1
je 0x4387b6
mov eax, dword [str..C:]
mov ecx, dword [0x44ace0]
mov dx, word [edx]
mov dword [esp + 0x110], eax
mov eax, dword [0x44ace4]
mov dword [esp + 0x114], ecx
mov cx, word [0x44ace8]
mov dword [esp + 0x118], eax
mov eax, esi
mov dword [esp + 0x38], edi
mov word [esp + 0x11c], cx
mov word [esp + 0x118], dx
call fcn.004397a0
push edi
push edi
push 3
xor eax, eax
push edi
push 3
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
push Ordinal_3
lea eax, [esp + 0x128]
push eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x48], ebx
cmp ebx, 0xffffffff
je 0x4387b0
mov dword [esp + 0x18], edi
lea edi, [esp + 0x18]
mov dword [esi + 0xc], ebx
call fcn.004387e0
mov dword [esp + 0x3c], eax
test eax, eax
jbe 0x438798
mov ebx, dword [esp + 0x18]
add ebx, 0x10
push ebx
mov dword [esp + 0x1c], ebx
call sub.mfc90u.dll_new__
add esp, 4
lea ecx, [esp + 0x8c]
mov edi, eax
push ecx
mov dword [esp + 0x44], edi
call fcn.004337a0
xor esi, esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x130], esi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x130], 1
mov ax, word [0x44bdb8]
mov edx, dword [0x44bdb4]
push 0xffffffffffffffff
mov word [esp + 0x10c], ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x108], edx
mov dx, word [ecx]
push 5
push eax
lea eax, [esp + 0x110]
mov word [esp + 0x110], dx
call fcn.00439700
or eax, 0xffffffff
lea edx, [esp + 0x6c]
xor ecx, ecx
push edx
mov word [esp + 0x50], cx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.0043c460
mov eax, dword [esp + 0x10]
mov edx, ebx
imul edx, edx, 0x7d0
mov byte [esp + 0x130], 2
mov eax, dword [eax + 0xc]
mov cx, word [esp + 0x104]
push edx
mov word [esp + 0x50], cx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], 0x7d0
call sub.mfc90u.dll_new__
mov dword [esp + 0x60], eax
add esp, 4
lea eax, [esp + 0x6c]
call fcn.0043ca40
mov dword [esp + 0x14], esi
cmp dword [esp + 0x3c], esi
jbe 0x4386f3
push ebx
xor eax, eax
push edi
push eax
mov dword [esp + 0x114], eax
push esi
lea eax, [esp + 0x5c]
call fcn.0043bbd0
test eax, eax
je 0x4386d6
mov eax, dword [edi]
cmp eax, esi
jne 0x4386d6
mov ecx, dword [edi + 4]
cmp ecx, dword [esp + 0x108]
jne 0x4386d6
lea esi, [esp + 0x8c]
call fcn.004380b0
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x44]
push eax
mov eax, dword [esp + 0x44]
mov edi, esi
mov dword [esp + 0xac], edx
call fcn.00438890
test eax, eax
je 0x4386ca
test byte [esp + 0xa4], 0x10
je 0x438555
mov eax, dword [esp + 0x94]
cmp eax, 5
jne 0x438539
cmp dword [esp + 0x98], 0
je 0x438555
mov ecx, dword [esp + 0x9c]
mov edi, dword [esp + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x94]
push edi
call fcn.00439700
jmp 0x438559
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x9c]
lea edx, [esp + 0x44]
push edx
push eax
push edi
call fcn.00439880
test eax, eax
je 0x438589
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x94]
call dword [0x444764]
cmp dword [esp + 0x14], 0
jne 0x43866c
lea esi, [esp + 0xbc]
mov dword [esp + 0xb0], 3
call fcn.004374f0
mov edx, dword [edi + 0x70]
mov eax, dword [edi + 0x68]
mov esi, dword [edi + 0x74]
mov ecx, dword [edi + 0x6c]
mov ebx, edx
sub ebx, eax
mov dword [esp + 0x1c], eax
mov eax, esi
sbb eax, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ebx
lea ecx, [esp + 0x1c]
lea ebx, [esp + 0xbc]
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], esi
call fcn.0043c110
mov eax, dword [edi + 0x44]
test eax, eax
je 0x4386a3
mov ecx, dword [edi + 0x54]
mov edx, dword [edi + 0x50]
xor ebx, ebx
push ebx
push eax
push ecx
push edx
call fcn.0043f760
mov ecx, dword [edi + 0x5c]
mov esi, eax
mov eax, dword [edi + 0x58]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea ecx, [esp + 0x1c]
lea ebx, [esp + 0xbc]
mov dword [esp + 0x88], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edx
call fcn.0043c110
mov eax, dword [edi + 0x64]
mov ecx, dword [esp + 0x88]
mov edx, dword [edi + 0x60]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.0043c110
jmp 0x4386a3
lea eax, [esp + 0x8c]
mov ecx, edi
call fcn.00439c50
test eax, eax
je 0x43868b
mov dword [esp + 0xb0], 4
jmp 0x4386a3
mov edx, 1
cmp edx, dword [esp + 0xd4]
sbb eax, eax
and eax, 2
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
push ecx
push edx
push 0
push eax
lea edx, [esp + 0x9c]
mov ecx, edi
call fcn.00438160
cmp eax, 0xffffffff
je 0x4386e7
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x14]
inc esi
mov dword [esp + 0x14], esi
cmp esi, dword [esp + 0x3c]
jb 0x4384b3
jmp 0x4386f3
mov edi, dword [esp + 0x40]
mov dword [esp + 0x38], 0xffffffff
push edi
call sub.mfc90u.dll_delete__
mov eax, dword [esp + 0x60]
xor esi, esi
add esp, 4
cmp eax, esi
je 0x438713
push eax
call sub.mfc90u.dll_delete__
add esp, 4
mov dword [esp + 0x5c], esi
mov eax, dword [esp + 0x78]
cmp eax, esi
je 0x438724
push eax
call sub.mfc90u.dll_delete
add esp, 4
mov ecx, dword [esp + 0x6c]
push ecx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
call sub.mfc90u.dll_delete
add esp, 4
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]
lea esi, [esp + 0xbc]
mov dword [esp + 0x130], 0xffffffff
call fcn.0042cea0
mov edx, dword [esp + 0xbc]
push edx
call sub.mfc90u.dll_delete
add esp, 4
lea ecx, [esp + 0x90]
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 + 0x8c]
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 esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x48]
jmp 0x4387a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x38], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
call fcn.004397a0
mov eax, dword [esp + 0x38]
jmp 0x4387b9
or eax, 0xffffffff
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0043ec6a
mov esp, ebp
pop ebp
ret 4