Function at 0x403e90
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
push esi
push edi
mov eax, dword [ebp]
mov dword [esp + 0x10], 1
cmp eax, ebx
jne 0x403eb3
mov dword [esp + 0x10], ebx
jmp 0x403f32
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x403ed8
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00404e6e
mov edx, eax
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [ebp + 4], edx
repne scasb al, byte es:[edi]
not ecx
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40410d
mov edi, dword [ebp + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [ebp]
not ecx
dec ecx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [edx + ecx + 8]
push esi
call fcn.00404e6e
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..hta
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00404e6e
mov edx, eax
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 8], edx
repne scasb al, byte es:[edi]
not ecx
mov edi, edx
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x410730
and ecx, 3
push ebx
rep stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040513c
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x404058
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8
mov edi, dword [esp + 0x11c]
mov ecx, dword [edi + 8]
push ecx
push str._html__n_head__n_meta_http_equiv_Content_Type__content_text_html__charsetshift_jis___n_title_MSI_UPLOADER_Ver3.0__title__n_script_language_JavaScript__type_text_JavaScript___n_____nfunction_fclick___n____form1.button_name.value_upload___n____form1.submit____n_nwindow.resizeTo_620_410___n______n__script__n_HTA:APPLICATION_ID_MSI_UPLOADER__nAPPLICATIONNAME_HTA__nBORDER_dialog__nBORDERSTYLE_normal__nCAPTION_yes__nICON___nINNERBORDER_no__nMAXIMIZEBUTTON_no__nMINIMIZEBUTTON_no__nSHOWINTASKBAR_no__nSINGLEINSTANCE_no__nSYSMENU_yes__nVERSION_1.0__nWINDOWSTATE_normal__nSCROLL_no__nSCROLLFLAT_yes__nSELECTION_no__nCONTEXTMENU_yes__nNAVIGABLE_yes__n___n__head__n_body_ONLOAD_fclick_____text000000_leftMargin0_topMargin0_marginwidth_0__marginheight_0__bgcolor_PaleGreen___n_table_width_100___height_100____tr_height_60____td_align_center__valign_middle___p_style_font_size:40px__color:blue__
push str._s_s
push esi
call fcn.004058c1
add esp, 0x10
push 0x40e5f4
push 0x410724
push esi
call fcn.004058c1
mov edx, dword [edi + 0x10]
add esp, 0xc
push edx
push str._input_type_hidden__value__s_
push esi
call fcn.004058c1
mov eax, dword [edi + 0xc]
add esp, 0xc
push eax
push str._name__s___n
push esi
call fcn.004058c1
mov ecx, dword [esp + 0x12c]
mov edx, dword [edi]
add esp, 0xc
push ecx
push edx
push esi
mov ecx, ebp
call fcn.00403be0
mov edi, dword [edi + 4]
test edi, edi
je 0x4040d8
push edi
push str._input_type_hidden__value__s_
push esi
call fcn.004058c1
add esp, 0xc
jmp 0x4040e6
push str._input_type_hidden__value__
push esi
call fcn.004058c1
add esp, 8
push str._name__n____n
push esi
call fcn.004058c1
add esp, 8
push str.___input_type_hidden__name_button_name__value_____n__form__n__p__n__body__n__html__n
push 0x410724
push esi
call fcn.004058c1
push esi
call fcn.0040506f
add esp, 0x10
push ebx
call fcn.00404d62
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 8