Function at 0x42d3bc
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x514
lea ebp, [esp - 4]
mov eax, dword [0x517774]
xor eax, ebp
mov dword [ebp + 0x514], eax
push 0x2c
mov eax, 0x4cad4b
call fcn.0049aeba
mov esi, ecx
mov dword [ebp - 0x38], esi
call fcn.00401d80
xor ebx, ebx
lea ecx, [esi + 0x1c]
mov dword [ebp - 4], ebx
call fcn.00401d80
lea ecx, [esi + 0x38]
call fcn.00401d80
lea ecx, [esi + 0x54]
call fcn.00401d80
lea ecx, [esi + 0x70]
call fcn.00401d80
lea ecx, [esi + 0x8c]
call fcn.00401d80
lea ecx, [esi + 0xa8]
call fcn.00401d80
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 6
call fcn.0042d3a3
push 0x103
lea eax, [ebp + 0x411]
push ebx
push eax
mov byte [ebp - 4], 7
mov dword [esi + 0xe8], ebx
mov byte [ebp + 0x410], bl
call fcn.00497680
lea eax, [ebp - 0x2c]
add esp, 0xc
push eax
mov dword [ebp - 0x2c], reloc.OLEAUT32.dll_SysReAllocString
call fcn.00427ff7
neg eax
sbb eax, eax
and eax, 0x200
add eax, 0x20019
push eax
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 0x104
cmp eax, ebx
jne 0x42d4e2
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 0x2c]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42d4d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSetupWrapperApp:_RegQueryValueEx_HKLMSoftwareMicrosoftWindowsCurrentVersion____ProgramFilesDir__Failed_with__d___
push 8
push 0x519518
call fcn.00402450
add esp, 0x10
push dword [ebp - 0x2c]
call fcn.00429cef
pop ecx
jmp 0x42d4f7
push eax
push str.Could_not_open_CurrentVersion_reg_key.__error_d
push 8
push 0x519518
call fcn.00402450
add esp, 0x10
lea eax, [ebp + 0x410]
push eax
push str.Program_Filesx86_s
push 0x80
push 0x519518
call fcn.00402450
lea eax, [ebp + 0x410]
push eax
call fcn.00410cf0
add esp, 0x14
push str._Program_Filesx86_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 8
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._ProgramFilesx86_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 9
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._PFx86_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0xa
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
lea eax, [ebp + 0x410]
push eax
lea ecx, [esi + 0xa8]
call fcn.004022d0
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp + 0x410], bl
mov dword [ebp - 0x2c], reloc.OLEAUT32.dll_SysReAllocString
call fcn.00427ff7
neg eax
sbb eax, eax
and eax, 0x100
add eax, 0x20019
push eax
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersion
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x42d674
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp + 0x410]
push eax
lea eax, [ebp - 0x30]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x42d669
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSetupWrapperApp:_RegQueryValueEx_HKLMSoftwareMicrosoftWindowsCurrentVersion____ProgramFilesDir__Failed_with__d___
push 8
push 0x519518
call fcn.00402450
add esp, 0x10
push dword [ebp - 0x2c]
call fcn.00429cef
pop ecx
jmp 0x42d689
push eax
push str.Could_not_open_CurrentVersion_reg_key.__error_d
push 8
push 0x519518
call fcn.00402450
add esp, 0x10
lea eax, [ebp + 0x410]
push eax
push str.Program_Files_s
push 0x80
push 0x519518
call fcn.00402450
lea eax, [ebp + 0x410]
push eax
call fcn.00410cf0
add esp, 0x14
push str._Program_Files_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0xb
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._ProgramFiles_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0xc
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._PF_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0xd
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
lea eax, [ebp + 0x410]
push eax
lea ecx, [esi + 0x8c]
call fcn.004022d0
push ebx
mov byte [ebp + 0x410], bl
call fcn.00438573
pop ecx
push edi
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x42d7b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CSetupWrapperApp:_GetSystemDirectory___with__d___
push 8
push 0x519518
call fcn.00402450
add esp, 0x10
call fcn.0043859e
lea eax, [ebp + 0x410]
push eax
call fcn.00410cf0
pop ecx
call fcn.004280af
test eax, eax
lea eax, [ebp + 0x410]
push eax
je 0x42d925
lea ecx, [esi + 0x1c]
call fcn.004022d0
push str._System_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0xe
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._Sys_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0xf
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str..._system32_
lea eax, [ebp + 0x410]
push edi
push eax
call fcn.00498c94
push 0x40f
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00497680
add esp, 0x18
push 0x410
lea eax, [ebp]
push eax
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea eax, [ebp]
push eax
call fcn.00410cf0
lea ecx, [ebp - 0x28]
mov dword [esp], str._System32_
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x10
call fcn.0042ac9e
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._Sys32_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x11
call fcn.0042ac9e
lea ecx, [ebp]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
lea eax, [ebp]
lea ecx, [esi + 0x38]
jmp 0x42da2a
lea ecx, [esi + 0x38]
call fcn.004022d0
push str._System32_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x12
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._Sys32_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x13
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._System_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x14
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._Sys_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x15
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
lea eax, [ebp + 0x410]
lea ecx, [esi + 0x1c]
push eax
call fcn.004022d0
push ebx
call fcn.00438573
pop ecx
mov byte [ebp + 0x410], bl
call fcn.00427ff7
test eax, eax
je 0x42da65
call fcn.0043fb48
mov eax, dword [0x529948]
cmp eax, ebx
jne 0x42da59
mov dword [ebp - 0x30], ebx
jmp 0x42da76
push edi
lea ecx, [ebp + 0x410]
push ecx
call eax
jmp 0x42da73
push edi
lea eax, [ebp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 0x30], eax
call fcn.0043859e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x30], ebx
jne 0x42daa6
cmp eax, 0x78
je 0x42daa6
push dword [0x529948]
push eax
push str.Error__d_calling_GetSystemWow64Directory____pointer_is__p
push 8
push 0x519518
call fcn.00402450
add esp, 0x14
lea eax, [ebp + 0x410]
push eax
call fcn.00410cf0
lea ecx, [ebp - 0x28]
mov dword [esp], str._SystemWow64_
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x16
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._SysWow64_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x17
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._SysWow64_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x18
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
lea eax, [ebp + 0x410]
push eax
lea ecx, [esi + 0x54]
call fcn.004022d0
push edi
lea eax, [ebp + 0x410]
push eax
mov byte [ebp + 0x410], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x42dbdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_GetWindowsDirectory__
push 8
push 0x519518
call fcn.00402450
add esp, 0x10
push edi
lea eax, [ebp + 0x410]
push eax
push str.windir
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x42dbdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_GetEnvironmentVariable_windir_
push 8
push 0x519518
call fcn.00402450
add esp, 0x10
lea eax, [ebp + 0x410]
push eax
call fcn.00410cf0
lea ecx, [ebp - 0x28]
mov dword [esp], str._Windows_
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x19
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._Win_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x1a
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._Windir_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x1b
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
lea eax, [ebp + 0x410]
push eax
lea ecx, [esi + 0x70]
call fcn.004022d0
push str._WindowsDrive_
lea ecx, [ebp - 0x28]
mov byte [ebp + 0x413], bl
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x1c
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
mov byte [ebp + 0x410], bl
lea eax, [ebp + 0x410]
push eax
push edi
call fcn.004385be
lea eax, [ebp + 0x410]
push eax
call fcn.004998a0
add esp, 0xc
test eax, eax
jne 0x42dd7c
push edi
lea eax, [ebp + 0x410]
push eax
push str.temp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x42dd7c
push str.CMacroExpander:_Both_GetTempPath___and_GetEnvironmentVariable___temp___Failed___
push 0x519518
call fcn.00426fe1
pop ecx
pop ecx
push edi
lea eax, [ebp + 0x410]
push eax
push 0x4dd1f4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x42dd7c
push str.CMacroExpander:_Also_failed_to_get_environment_variable__tmp_.
push 0x519518
call fcn.00426fe1
push str.CMacroExpander:_Could_not_set_the_Temp_directory_to_replace__Temp_.
push 0x519518
call fcn.00426fe1
add esp, 0x10
lea eax, [ebp + 0x410]
push eax
call fcn.00410cf0
lea ecx, [ebp - 0x28]
mov dword [esp], str._Temp_
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x1d
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._Tmp_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x1e
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
lea eax, [ebp + 0x410]
push eax
mov ecx, esi
call fcn.004022d0
lea eax, [ebp + 0x410]
push eax
push edi
mov byte [ebp + 0x410], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp + 0x410]
push eax
call fcn.004998a0
pop ecx
test eax, eax
jne 0x42de97
push edi
lea eax, [ebp + 0x410]
push eax
push str.temp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x42de97
push str.CMacroExpander:_Both_GetTempPath___and_GetEnvironmentVariable___temp___Failed___
push 0x519518
call fcn.00426fe1
pop ecx
pop ecx
push edi
lea eax, [ebp + 0x410]
push eax
push 0x4dd1f4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x42de97
push str.CMacroExpander:_Also_failed_to_get_environment_variable__tmp_.
push 0x519518
call fcn.00426fe1
push str.CMacroExpander:_Could_not_set_the_Temp_directory_to_replace__Temp_.
push 0x519518
call fcn.00426fe1
add esp, 0x10
lea eax, [ebp + 0x410]
push eax
call fcn.00410cf0
lea ecx, [ebp - 0x28]
mov dword [esp], str._UserTemp_
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0xc8]
mov byte [ebp - 4], 0x1f
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push edi
lea eax, [ebp + 0x410]
push eax
push str.allusersprofile
mov byte [ebp + 0x410], bl
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x42df10
push str.CSetupWrapperApp:_GetEnvironmentVariable___allusersprofile___Failed___
push 0x519518
call fcn.00426fe1
pop ecx
pop ecx
lea eax, [ebp + 0x410]
push eax
call fcn.00410cf0
lea ecx, [ebp - 0x28]
mov dword [esp], str._allusersprofile_
call fcn.00402a30
lea eax, [ebp - 0x28]
lea edi, [esi + 0xc8]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x20
call fcn.0042ac9e
lea ecx, [ebp + 0x410]
push ecx
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._cr_
lea ecx, [ebp - 0x28]
mov byte [ebp + 0x410], bl
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x21
call fcn.0042ac9e
push 0x4dca20
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._lf_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x22
call fcn.0042ac9e
push 0x4dca18
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 7
call fcn.00401a30
push str._crlf_
lea ecx, [ebp - 0x28]
call fcn.00402a30
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
mov byte [ebp - 4], 0x23
call fcn.0042ac9e
push 0x4d65f0
mov ecx, eax
call fcn.004022d0
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401a30
xor eax, eax
mov word [esi + 0xc4], ax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x514]
xor ecx, ebp
call fcn.004974ba
add ebp, 0x518
leave
ret