Function at 0x4019e0
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x404deb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xab4
push ebx
push ebp
push esi
lea eax, [esp + 0x1f]
push edi
push eax
lea ecx, [esp + 0x2c]
call fcn.00402990
mov edx, dword [esp + 0xad4]
lea ecx, [esp + 0x4ac]
push 0x104
xor edi, edi
push ecx
push edx
mov dword [esp + 0xad8], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esp + 0x4ac]
push eax
call esi
dec eax
js 0x401a71
lea ecx, [esp + eax*2 + 0x4ac]
cmp word [ecx], 0x5c
je 0x401a5b
dec eax
sub ecx, 2
cmp eax, edi
jge 0x401a4b
jmp 0x401a71
lea ecx, [esp + eax*2 + 0x4ae]
lea edx, [esp + 0x2a4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [esp + 0x2a4]
push eax
call esi
dec eax
js 0x401a9d
lea ecx, [esp + eax*2 + 0x2a4]
cmp word [ecx], 0x2e
je 0x401a95
dec eax
sub ecx, 2
cmp eax, edi
jge 0x401a85
jmp 0x401a9d
mov word [esp + eax*2 + 0x2a4], di
mov ebp, dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [esp + 0x9c]
push ecx
push 0x104
call ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x8c4]
push str.setup__08x__lu_
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x8bc]
lea ecx, [esp + 0x9c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 0x9c]
push edx
call edi
cmp eax, 0xffffffff
jne 0x401ab5
lea eax, [esp + 0x9c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x9c]
push ecx
call edi
cmp eax, 0xffffffff
jne 0x401b4c
mov dword [esp + 0xacc], eax
mov eax, dword [esp + 0x54]
test eax, eax
je 0x401b44
lea ecx, [esp + 0x28]
call fcn.004029c0
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x401b33
or eax, 0xffffffff
jmp 0x4022d3
mov dl, byte [esp + 0x23]
push 0
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5c], dl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ebp, dword [sym.imp.ntdll.dll_wcslen]
lea eax, [esp + 0x9c]
push eax
call ebp
add esp, 4
lea ecx, [esp + 0x9c]
push eax
push ecx
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea edx, [esp + 0x58]
lea ecx, [esp + 0x28]
push edx
mov byte [esp + 0xad0], 1
call fcn.00402a90
push 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0xad0], 0
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
call fcn.00401290
call esi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x68]
push eax
push ecx
mov ecx, 0x4060e8
call fcn.004027c0
mov eax, dword [0x4060ec]
mov ecx, dword [esp + 0x68]
cmp ecx, eax
je 0x401ee5
lea eax, [ecx + 0x10]
lea edx, [esp + 0x24]
push eax
push edx
mov ecx, 0x4060d8
call fcn.00402920
mov eax, dword [0x4060dc]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x401ee5
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x401c10
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push str.MsiExec.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401ee5
mov edx, dword [0x4060dc]
mov eax, dword [edx]
mov ecx, eax
cmp eax, edx
mov dword [esp + 0x24], ecx
je 0x401ee5
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [ecx + 0x14]
xor edi, edi
cmp eax, edi
jne 0x401c4e
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push str.MsiExec.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401ecb
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x10]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call fcn.00401420
add esp, 8
mov eax, dword [esp + 0x18]
mov byte [esp + 0xacc], 2
cmp eax, edi
jbe 0x401e91
push 0x406090
call ebp
add esp, 4
lea ecx, [esp + 0x10]
push eax
push edi
push 0x406090
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::find_unsigned_short_int_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
cmp eax, dword [ecx]
jne 0x401cd9
push 0x406088
call ebp
add esp, 4
lea ecx, [esp + 0x10]
push eax
push edi
push 0x406088
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::find_unsigned_short_int_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
cmp eax, dword [ecx]
je 0x401e91
mov ecx, dword [ecx]
add eax, 2
push ecx
lea edx, [esp + 0x70]
push eax
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [esp + 0xacc], 3
mov edx, dword [ecx]
lea ecx, [esp + 0x10]
push edx
push edi
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push 1
lea ecx, [esp + 0x70]
mov byte [esp + 0xad0], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x401d54
mov al, byte [esi - 1]
test al, al
je 0x401d48
cmp al, 0xff
je 0x401d48
mov eax, dword [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Grow_unsigned_int__bool_]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x401d54
mov byte [esi - 1], 0xff
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Freeze_void_]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jne 0x401d6a
xor eax, eax
jmp 0x401d71
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx*2]
cmp esi, eax
je 0x401db1
mov ax, word [esi]
cmp ax, 0x20
jne 0x401da4
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Freeze_void_]
test esi, esi
je 0x401d92
sub esi, dword [esp + 0x14]
sar esi, 1
push 1
push esi
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::erase_unsigned_int__unsigned_int_]
jmp 0x401d20
cmp ax, 0x22
jne 0x401db1
mov edi, 1
jmp 0x401d7e
test edi, edi
je 0x401e46
push 0x406084
call ebp
add esp, 4
xor esi, esi
lea ecx, [esp + 0x10]
push eax
push esi
push 0x406084
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::find_unsigned_short_int_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
cmp eax, dword [ecx]
je 0x401e40
push eax
lea edx, [esp + 0x5c]
push esi
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::substr_unsigned_int__unsigned_int_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [esp + 0xacc], 4
mov edx, dword [ecx]
lea ecx, [esp + 0x10]
push edx
push esi
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov ecx, dword [esp + 0x5c]
cmp ecx, esi
je 0x401e34
mov al, byte [ecx - 1]
test al, al
je 0x401e28
cmp al, 0xff
je 0x401e28
dec al
mov byte [ecx - 1], al
jmp 0x401e34
add ecx, 0xfffffffe
push ecx
call fcn.004049b0
add esp, 4
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov ecx, dword [esp + 0x14]
jmp 0x401e48
xor esi, esi
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
cmp ecx, esi
je 0x401e53
mov eax, ecx
push 0x104
push eax
lea eax, [esp + 0x6bc]
push eax
call ebx
lea ecx, [esp + 0x6b4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea edx, [esp + 0x6b4]
push 0x104
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [esp + 0x2ac]
push eax
call ebx
xor edi, edi
mov ecx, dword [esp + 0x14]
mov byte [esp + 0xacc], 0
cmp ecx, edi
je 0x401ebf
mov al, byte [ecx - 1]
test al, al
je 0x401eb3
cmp al, 0xff
je 0x401eb3
dec al
mov byte [ecx - 1], al
jmp 0x401ebf
lea eax, [ecx - 2]
push eax
call fcn.004049b0
add esp, 4
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
lea ecx, [esp + 0x24]
call fcn.00403aa0
mov eax, dword [0x4060dc]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jne 0x401c40
lea ecx, [esp + 0x28]
lea edx, [esp + 0x2a4]
push ecx
push 0x66
push 0x406078
lea eax, [esp + 0xa8]
push edx
push eax
call fcn.00401600
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x2b8]
push ecx
push 0x67
push 0x406068
lea eax, [esp + 0xbc]
push edx
push eax
call fcn.00401600
lea ecx, [esp + 0x50]
lea edx, [esp + 0x2cc]
push ecx
push 0x68
push str._1.bin
lea eax, [esp + 0xd0]
push edx
push eax
call fcn.00401600
lea ecx, [esp + 0x64]
lea edx, [esp + 0x2e0]
push ecx
push 0x69
push str._2.bin
lea eax, [esp + 0xe4]
push edx
push eax
call fcn.00401600
add esp, 0x50
lea ecx, [esp + 0x28]
lea edx, [esp + 0x2a4]
lea eax, [esp + 0x9c]
push ecx
push 0x6a
push 0x406038
push edx
push eax
call fcn.00401600
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0x14
lea ecx, [esp + 0x2a4]
lea edx, [esp + 0x9c]
push ecx
push edx
call esi
lea eax, [esp + 0x9c]
push 0x406078
push eax
call esi
lea edx, [esp + 0x9c]
mov ecx, dword [esp + 0xadc]
push ecx
push edx
call fcn.00401830
mov eax, dword [esp + 0x5c]
add esp, 8
test eax, eax
je 0x402211
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], ecx
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
call fcn.004044f0
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x402022
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call edi
push 0xffffffffffffffff
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], edx
call fcn.004044f0
mov eax, dword [esp + 0x60]
mov eax, dword [eax + 4]
test eax, eax
jne 0x402060
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call ebp
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jne 0x40211d
mov eax, dword [esp + 0x48]
mov ecx, eax
sub eax, 4
mov dword [esp + 0x48], eax
mov ecx, dword [ecx]
push ecx
call fcn.004049b0
mov eax, dword [esp + 0x58]
add esp, 4
test eax, eax
jne 0x402101
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jne 0x4020aa
mov eax, dword [eax]
push eax
call fcn.004049b0
add esp, 4
lea ecx, [esp + 0x8c]
call fcn.004043a0
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x98]
mov dword [esp + 0x34], edx
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x2c], eax
push edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], esi
call fcn.004049b0
add esp, 4
jmp 0x40211d
mov edx, dword [esp + 0x48]
mov eax, dword [edx]
mov dword [esp + 0x48], edx
mov dword [esp + 0x3c], eax
lea ecx, [eax + 0x1000]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov eax, dword [esp + 0x54]
test eax, eax
je 0x402138
mov ecx, dword [esp + 0x44]
push 1
sub ecx, 0x10
mov dword [esp + 0x48], ecx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [esp + 0x54]
dec eax
mov dword [esp + 0x54], eax
jne 0x401fe7
mov ecx, dword [esp + 0x48]
mov eax, ecx
sub ecx, 4
mov dword [esp + 0x48], ecx
mov eax, dword [eax]
push eax
call fcn.004049b0
mov eax, dword [esp + 0x58]
add esp, 4
test eax, eax
jne 0x4021cf
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jne 0x40217e
mov eax, dword [eax]
push eax
call fcn.004049b0
add esp, 4
lea ecx, [esp + 0x7c]
call fcn.004043a0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov esi, dword [esp + 0x88]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], ecx
push eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
call fcn.004049b0
add esp, 4
jmp 0x402205
mov ecx, dword [esp + 0x48]
push ecx
mov eax, dword [ecx]
lea ecx, [esp + 0x70]
add eax, 0x1000
push eax
call fcn.004044c0
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x401fe7
test eax, eax
mov dword [esp + 0xacc], 0xffffffff
je 0x4022d1
mov edx, dword [esp + 0x34]
mov ecx, edx
add edx, 0x10
push 1
mov dword [esp + 0x38], edx
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [esp + 0x54]
dec eax
mov dword [esp + 0x54], eax
je 0x402250
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
cmp edx, eax
jne 0x4022c5
mov eax, dword [esp + 0x38]
mov ecx, eax
add eax, 4
mov dword [esp + 0x38], eax
mov edx, dword [ecx]
push edx
call fcn.004049b0
mov eax, dword [esp + 0x58]
add esp, 4
test eax, eax
jne 0x4022ab
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
xor edx, edx
xor esi, esi
push eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], esi
call fcn.004049b0
mov edx, dword [esp + 0x38]
add esp, 4
jmp 0x4022c5
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov dword [esp + 0x38], eax
mov edx, ecx
mov dword [esp + 0x2c], ecx
lea esi, [ecx + 0x1000]
mov dword [esp + 0x30], esi
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x402228
xor eax, eax
mov ecx, dword [esp + 0xac4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xac0
ret 0x10