Function at 0x402a50
Capabilities:
Copy file
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x432551
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
call fcn.0042d2a1
mov eax, dword [eax + 4]
lea ecx, [esp + 0x2c]
lea ebp, [eax + 0xc8]
push ebp
call fcn.0041d662
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp ebx, esi
mov dword [esp + 0x11c], esi
je 0x402aaf
cmp ebx, 5
jne 0x402d2a
mov esi, dword [esp + 0x134]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x402d2a
mov ecx, dword [0x443588]
mov byte [esp + 0x17], 0
mov dword [esp + 0x10], ecx
mov byte [esp + 0x11c], 1
call fcn.00402050
push eax
lea edx, [esp + 0x14]
push str.msg_d
push edx
mov dword [esp + 0x24], eax
call fcn.0041c302
add esp, 0xc
test ebx, ebx
jne 0x402b0a
push str..pck
lea ecx, [esp + 0x14]
call fcn.0041dcc9
jmp 0x402b68
push str..txt
lea ecx, [esp + 0x14]
call fcn.0041dcc9
mov ecx, dword [esp + 0x124]
mov eax, dword [ecx + 0x1c]
add eax, 0xffffffc0
cmp eax, 0xc
jle 0x402b2f
mov eax, 0xc
push eax
add ecx, 0x80
push str._screen_get
push ecx
call fcn.0040e810
add esp, 0xc
test eax, eax
jne 0x402b68
call fcn.0042d2a1
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x402b63
push esi
lea ecx, [eax + 0xdc]
call fcn.0041da26
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x124]
push 8
add eax, 0x40
push str._putfile
push eax
call fcn.0040e810
add esp, 0xc
test eax, eax
jne 0x402b96
mov ecx, dword [esp + 0x124]
push ecx
call fcn.00402920
add esp, 4
mov al, byte [esp + 0x17]
test al, al
jne 0x402d19
push str.Users_
lea edx, [esp + 0x20]
push ebp
push edx
call fcn.0041db82
push esi
push eax
lea eax, [esp + 0x30]
mov bl, 2
push eax
mov byte [esp + 0x128], bl
call fcn.0041db1c
push 0x443124
lea ecx, [esp + 0x48]
push eax
push ecx
mov byte [esp + 0x128], 3
call fcn.0041db82
lea edx, [esp + 0x10]
mov byte [esp + 0x11c], 4
push edx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0041db1c
mov esi, dword [eax]
mov byte [esp + 0x11c], 5
call fcn.0042d2a1
mov eax, dword [eax + 4]
push 0x443124
add eax, 0xc4
lea ecx, [esp + 0x4c]
push eax
push ecx
call fcn.0041db82
push edi
lea edx, [esp + 0x24]
push eax
push edx
mov byte [esp + 0x128], 6
call fcn.0041db1c
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.0041d8ed
lea ecx, [esp + 0x48]
mov byte [esp + 0x11c], 5
call fcn.0041d8ed
lea ecx, [esp + 0x40]
mov byte [esp + 0x11c], 4
call fcn.0041d8ed
lea ecx, [esp + 0x44]
mov byte [esp + 0x11c], 3
call fcn.0041d8ed
lea ecx, [esp + 0x28]
mov byte [esp + 0x11c], bl
call fcn.0041d8ed
lea ecx, [esp + 0x1c]
mov byte [esp + 0x11c], 1
call fcn.0041d8ed
test esi, esi
je 0x402d12
mov eax, dword [esp + 0x18]
inc eax
push eax
call fcn.00401fe0
add esp, 4
call fcn.0042d2a1
mov eax, dword [eax + 4]
push 0x443124
add eax, 0xc4
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0041db82
push edi
lea ecx, [esp + 0x1c]
mov bl, 7
push eax
push ecx
mov byte [esp + 0x128], bl
call fcn.0041db1c
mov eax, dword [eax]
mov byte [esp + 0x11c], 8
push eax
call fcn.0041e2f3
lea ecx, [esp + 0x18]
mov byte [esp + 0x11c], bl
call fcn.0041d8ed
lea ecx, [esp + 0x1c]
mov byte [esp + 0x11c], 1
call fcn.0041d8ed
mov ebx, dword [esp + 0x128]
lea ecx, [esp + 0x10]
mov byte [esp + 0x11c], 0
call fcn.0041d8ed
cmp ebx, 4
jne 0x402e50
lea edx, [esp + 0x1c]
push 3
push edx
mov ecx, edi
call fcn.0041bdf2
mov esi, eax
push str.Users_
lea eax, [esp + 0x1c]
push ebp
push eax
mov byte [esp + 0x128], 9
call fcn.0041db82
push esi
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x128], 0xa
call fcn.0041db1c
lea ecx, [esp + 0x18]
mov byte [esp + 0x11c], 0xd
call fcn.0041d8ed
lea ecx, [esp + 0x1c]
mov byte [esp + 0x11c], 0xc
call fcn.0041d8ed
lea edx, [esp + 0x20]
push str._reginf.dat
lea eax, [esp + 0x14]
push edx
push eax
call fcn.0041db82
mov bl, 0xe
lea ecx, [esp + 0x30]
mov byte [esp + 0x11c], bl
call fcn.0041de93
mov ecx, dword [esp + 0x10]
push 0
push 0
push ecx
lea ecx, [esp + 0x3c]
mov byte [esp + 0x128], 0xf
call fcn.0041dfa5
test eax, eax
je 0x402e16
lea edx, [esp + 0x4c]
push 0xc8
push edx
lea ecx, [esp + 0x38]
call fcn.0041e0c2
mov eax, dword [esp + 0x124]
lea edx, [esp + 0x4c]
mov ecx, dword [eax + 0x1c]
add eax, 0x80
sub ecx, 0x42
push ecx
push edx
push eax
call fcn.00417510
add esp, 0xc
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [esp + 0x24], eax
jmp 0x402e1e
mov dword [esp + 0x24], 5
lea ecx, [esp + 0x30]
mov byte [esp + 0x11c], bl
call fcn.0041dee8
lea ecx, [esp + 0x10]
mov byte [esp + 0x11c], 0xc
call fcn.0041d8ed
mov byte [esp + 0x11c], 0
lea ecx, [esp + 0x20]
jmp 0x402f93
cmp ebx, 3
jne 0x402f98
lea eax, [esp + 0x2c]
push str.Users
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0041db82
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
push eax
call esi
lea ecx, [esp + 0x18]
call fcn.0041d8ed
lea edx, [esp + 0x1c]
push ebx
push edx
mov ecx, edi
call fcn.0041bdf2
mov edi, eax
lea eax, [esp + 0x2c]
push str.Users_
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x128], 0x10
call fcn.0041db82
push edi
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x128], 0x11
call fcn.0041db1c
lea ecx, [esp + 0x18]
mov byte [esp + 0x11c], 0x14
call fcn.0041d8ed
lea ecx, [esp + 0x1c]
mov byte [esp + 0x11c], 0x13
call fcn.0041d8ed
mov eax, dword [esp + 0x10]
push 0
push eax
call esi
test eax, eax
mov dword [esp + 0x24], eax
je 0x402f87
lea ecx, [esp + 0x30]
call fcn.0041de93
lea ecx, [esp + 0x10]
push str._reginf.dat
lea edx, [esp + 0x2c]
mov bl, 0x15
push ecx
push edx
mov byte [esp + 0x128], bl
call fcn.0041db82
mov eax, dword [eax]
push 0
push 0x1002
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x128], 0x16
call fcn.0041dfa5
lea ecx, [esp + 0x28]
mov esi, eax
mov byte [esp + 0x11c], bl
call fcn.0041d8ed
test esi, esi
je 0x402f76
mov eax, dword [esp + 0x124]
mov ecx, dword [eax + 0x1c]
add eax, 0x80
sub ecx, 0x40
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.0041e0fc
lea ecx, [esp + 0x30]
call fcn.0041e1c0
lea ecx, [esp + 0x30]
mov byte [esp + 0x11c], 0x13
call fcn.0041dee8
mov byte [esp + 0x11c], 0
lea ecx, [esp + 0x10]
call fcn.0041d8ed
lea ecx, [esp + 0x2c]
mov dword [esp + 0x11c], 0xffffffff
call fcn.0041d8ed
mov ecx, dword [esp + 0x114]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x110
ret