Function at 0x408e40
Capabilities:
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x42154c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x380
mov eax, dword [0x4389b8]
xor eax, dword [esp + 0x38c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x38c], eax
mov ebp, ecx
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x38], eax
push 0x4280
mov dword [esp + 0x39c], 0
call sub.MFC70.DLL_Ordinal_957
test eax, eax
je 0x408eaf
push 0x4280
push eax
lea ecx, [esp + 0x40]
call fcn.004044c0
mov esi, dword [esp + 0x38]
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push esi
call fcn.004013a0
add eax, 0x10
lea ecx, [ebp + 0xac18]
add esp, 4
mov dword [edi], eax
mov dword [esp + 0x24], ecx
call fcn.0040ba30
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x3a0]
mov eax, dword [eax + 0x30]
test eax, eax
mov byte [esp + 0x398], 1
jne 0x40907a
push eax
mov ecx, ebp
call sub.MFC70.DLL_Ordinal_3881
mov edi, eax
test edi, edi
je 0x40902b
call dword [sym.imp.plotbase30.dll_public:_static_struct_CRuntimeClass____stdcall_CBaseOleDoc::GetThisClass_void_]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 0x140]
mov ecx, eax
call sub.MFC70.DLL_Ordinal_3754
test eax, eax
je 0x40902b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x140]
add eax, 0x24
push eax
lea ecx, [esp + 0x14]
call fcn.004035b0
mov esi, dword [esp + 0x10]
push 0x2e
push esi
call dword [sym.imp.MSVCR70.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x40901b
sub eax, esi
mov esi, eax
test esi, esi
jle 0x40901b
lea ecx, [esi + 1]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.00404d60
mov edi, dword [esp + 0x18]
push 0x426d50
push edi
mov byte [esp + 0x3a0], 2
call dword [sym.imp.MSVCR70.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x408ff3
push esi
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00401850
push str..for
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0x3a4], 3
call fcn.00404e70
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x39c], 4
call fcn.004035b0
lea ecx, [esp + 0x2c]
call fcn.00401760
lea ecx, [esp + 0x1c]
call fcn.00401760
lea eax, [edi - 0x10]
mov byte [esp + 0x398], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409094
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x409094
push str..for
lea ecx, [esp + 0x14]
call fcn.00405830
jmp 0x409094
add ebx, 0xfffffff0
mov byte [esp + 0x398], 0
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40904d
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov dword [esp + 0x398], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4097b1
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
xor eax, eax
jmp 0x409a84
mov ecx, eax
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x409080
sub ecx, esi
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401960
mov eax, dword [esp + 0x3a0]
mov edi, dword [eax + 4]
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x398], 5
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x398], 6
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x398], 7
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x34], eax
push 0x429a
mov byte [esp + 0x39c], 8
call sub.MFC70.DLL_Ordinal_957
test eax, eax
je 0x409127
push 0x429a
push eax
lea ecx, [esp + 0x40]
call fcn.004044c0
mov eax, dword [esp + 0x38]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov esi, esp
push eax
mov dword [esp + 0x20], eax
call fcn.004013a0
add eax, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x28]
add esp, 4
mov ecx, esi
call fcn.0040c5b0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str._r_n_r_n
call fcn.00405870
mov ecx, esi
call fcn.0040c5b0
lea eax, [esp + 0x28c]
push eax
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x194]
push edx
lea eax, [esp + 0x58]
push eax
push ecx
call dword [sym.imp.MSVCR70.dll__splitpath]
mov eax, 0x425529
add esp, 0x14
lea ecx, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4091a0
sub eax, ecx
push eax
push 0x425529
lea ecx, [esp + 0x3c]
call fcn.00401960
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00404e70
lea edx, [esp + 0x198]
push edx
push eax
lea eax, [esp + 0x34]
mov bl, 9
push eax
mov byte [esp + 0x3b0], bl
call fcn.00404e70
add esp, 0x18
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x39c], 0xa
call fcn.004035b0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x398], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409222
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
or ebx, 0xffffffff
mov byte [esp + 0x398], 8
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40924a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x39c], 0xb
call sub.WELLBASE30.dll_int___cdecl_GetWellBaseInstallDir_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____
add esp, 4
test eax, eax
jne 0x40936e
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x398], 8
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40929f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x398], 7
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x398], 6
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092e9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x398], 5
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40930e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x398], 1
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40932f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x398], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409354
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x398], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x4097a7
mov eax, str.temp_
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409376
sub eax, edx
push eax
push str.temp_
lea ecx, [esp + 0x30]
call fcn.00404600
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x39c], 0xc
call sub.WELLBASE30.dll_int___cdecl_GetWellBaseBinDir_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____
add esp, 4
test eax, eax
jne 0x4094db
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x398], 0xb
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x398], 8
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409408
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x398], 7
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40942d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x398], 6
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409452
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x398], 5
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409477
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov byte [esp + 0x398], 1
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409498
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x398], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409354
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x398], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x4097a7
lea eax, [esp + 0x8c]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00404e70
push str..exe
push eax
lea eax, [esp + 0x38]
mov bl, 0xd
push eax
mov byte [esp + 0x3b0], bl
call fcn.00404e70
add esp, 0x18
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x39c], 0xe
call fcn.004035b0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x398], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409545
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x398], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40956b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
push 0
push 0x40000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x409623
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00404e70
push str..exe
push eax
lea ecx, [esp + 0x38]
mov bl, 0xf
push ecx
mov byte [esp + 0x3b0], bl
call fcn.00404e70
add esp, 0x18
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x39c], 0x10
call fcn.004035b0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x398], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4095fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x398], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40962a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40962a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
mov bl, 0x11
push eax
mov byte [esp + 0x39c], bl
call sub.WELLBASE30.dll_int___cdecl_GetWellBaseLibPath_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____
add esp, 4
test eax, eax
jne 0x4097b8
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x398], 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409681
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x398], 0xb
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4096a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x398], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4096cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x398], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4096f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x398], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409719
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x398], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40973f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x398], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409765
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x398], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40978b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x398], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4097b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x409a84
test edi, edi
lea ecx, [esp + 0x1c]
je 0x4097c7
push str.flogprocessfwd.obj_wislib.lib_advapi32.lib
jmp 0x4097cc
push str.flogprocess37.obj_wislib.lib_advapi32.lib
call fcn.00402080
lea eax, [esp + 0x14]
push eax
call sub.WELLBASE30.dll_int___cdecl_GetWellBaseSystemDir_class_ATL::CStringT_char__class_StrTraitMFC_char__class_ATL::ChTraitsCRT_char_____
add esp, 4
test eax, eax
jne 0x40983a
lea ecx, [esp + 0x40]
call fcn.00401760
lea ecx, [esp + 0x3c]
call fcn.00401760
lea ecx, [esp + 0x28]
call fcn.00401760
lea ecx, [esp + 0x34]
call fcn.00401760
lea ecx, [esp + 0x14]
call fcn.00401760
lea ecx, [esp + 0x1c]
call fcn.00401760
lea ecx, [esp + 0x2c]
call fcn.00401760
lea ecx, [esp + 0x10]
call fcn.00401760
lea ecx, [esp + 0x38]
call fcn.00401760
xor eax, eax
jmp 0x409a84
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push str.fl32.exe__Fo
push edx
call fcn.00404f30
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x39c], 0x12
call fcn.00405810
lea ecx, [esp + 0x24]
mov byte [esp + 0x398], bl
call fcn.00401760
push 0x426c78
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00404e70
lea edx, [esp + 0x1c]
push edx
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x3b0], 0x13
call fcn.00404d90
push str.__link
push eax
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x3bc], 0x14
call fcn.00404e70
lea edx, [esp + 0x40]
push edx
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x3c8], 0x15
call fcn.00404d90
push str.__out:
push eax
lea ecx, [esp + 0x58]
push ecx
mov byte [esp + 0x3d4], 0x16
call fcn.00404e70
lea edx, [esp + 0x68]
push edx
push eax
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0x3e0], 0x17
call fcn.00404d90
add esp, 0x48
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x39c], 0x18
call fcn.004035b0
lea ecx, [esp + 0x24]
call fcn.00401760
lea ecx, [esp + 0x20]
call fcn.00401760
lea ecx, [esp + 0x18]
call fcn.00401760
lea ecx, [esp + 0x44]
call fcn.00401760
lea ecx, [esp + 0x48]
call fcn.00401760
lea ecx, [esp + 0x30]
mov byte [esp + 0x398], bl
call fcn.00401760
mov ecx, dword [esp + 0x40]
push ecx
push 0x426cb4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0x429b
lea ecx, [esp + 0x3c]
call fcn.00404e40
push ecx
mov edx, esp
mov dword [esp + 0x34], esp
push 0x426ca8
lea eax, [esp + 0x40]
push eax
push edx
call fcn.00404e70
add esp, 0xc
mov ecx, esi
call fcn.0040c5b0
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str._r_n_r_n
lea edx, [esp + 0x1c]
push edx
push ecx
call fcn.00404e70
add esp, 0xc
mov ecx, esi
call fcn.0040c5b0
push 0x2c
call sub.MFC70.DLL_Ordinal_703
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov byte [esp + 0x398], 0x19
je 0x4099de
push 0
push 0
push esi
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.00405780
jmp 0x4099e0
xor eax, eax
mov ecx, eax
mov byte [esp + 0x398], bl
call fcn.0040db20
test eax, eax
jne 0x409a2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.0040d980
add esp, 4
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x34], esp
push eax
mov byte [esp + 0x3a0], 0x1a
call fcn.00401740
mov ecx, esi
call fcn.0040c5b0
lea ecx, [esp + 0x18]
call fcn.00401760
lea ecx, [esp + 0x40]
call fcn.00401760
lea ecx, [esp + 0x3c]
call fcn.00401760
lea ecx, [esp + 0x28]
call fcn.00401760
lea ecx, [esp + 0x34]
call fcn.00401760
lea ecx, [esp + 0x14]
call fcn.00401760
lea ecx, [esp + 0x1c]
call fcn.00401760
lea ecx, [esp + 0x2c]
call fcn.00401760
lea ecx, [esp + 0x10]
call fcn.00401760
lea ecx, [esp + 0x38]
call fcn.00401760
mov eax, 1
mov ecx, dword [esp + 0x390]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x38c]
xor ecx, dword [esp + 0x39c]
call fcn.0041fbeb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38c
ret 4