Function at 0x403cf0
Capabilities:
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fad4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x16a8
call fcn.00406af0
mov eax, dword [0x414110]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push str._bmploader
mov esi, ecx
push 0x41037c
push 0x4150f8
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1674], esi
call fcn.00401f50
push 0x4109a4
push 0x41037c
push 0x4150f8
mov dword [ebp - 4], 0
call fcn.00401f50
add esp, 0x18
call fcn.00401180
lea eax, [ebp - 0x1670]
push eax
call fcn.00401580
add esp, 4
lea ecx, [ebp - 0x1670]
push 0x4102e4
push ecx
call fcn.00406455
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [ebp - 0x167c], ebx
jne 0x403dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x1670]
push edx
push 0x410980
push 0x41037c
push 0x4150f8
call fcn.00401fc0
add esp, 0x14
push 0x410968
push 0x41037c
push 0x4150f8
call fcn.00401f50
add esp, 0xc
call fcn.004011f0
or eax, 0xffffffff
jmp 0x40460c
mov dword [ebp - 0x1678], ebx
lea eax, [ebp - 0x468]
push eax
mov byte [ebp - 4], 1
call fcn.004015e0
lea eax, [esi + 4]
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403df6
lea edi, [ebp - 0x468]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403e06
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x468]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403e25
mov ecx, dword [str..rzx]
mov dl, byte [0x410964]
lea eax, [ebp - 0x468]
mov dword [edi], ecx
push 0x41026c
push eax
mov byte [edi + 4], dl
call fcn.00406455
mov esi, eax
add esp, 8
test esi, esi
jne 0x403eaa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x468]
push ecx
push 0x410940
push 0x41037c
push 0x4150f8
call fcn.00401fc0
add esp, 0x14
push 0x410968
push 0x41037c
push 0x4150f8
call fcn.00401f50
add esp, 0xc
call fcn.004011f0
push ebx
call fcn.00405d5e
add esp, 4
or eax, 0xffffffff
jmp 0x40460c
mov ecx, dword [0x4103e0]
mov eax, dword [0x4103dc]
mov edx, dword [str.C:Program_Files_rzx]
mov dword [ebp - 0xa6c], eax
mov eax, dword [0x4103e8]
mov dword [ebp - 0xa68], ecx
mov cl, byte [0x4103ec]
mov dword [ebp - 0xa60], eax
mov dword [ebp - 0xa70], edx
mov edx, dword [0x4103e4]
mov byte [ebp - 0xa5c], cl
xor eax, eax
mov dword [ebp - 0xa64], edx
mov ecx, 0xfa
lea edi, [ebp - 0xa5b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x1270], 0
xor eax, eax
mov ecx, 0xff
lea edi, [ebp - 0x126f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [ebp - 0x1270]
push edx
stosb byte es:[edi], al
call fcn.00402ae0
lea edi, [ebp - 0x1270]
add esp, 4
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403f31
mov eax, dword [str._rzx]
mov cl, byte [0x41093c]
mov dword [edi], eax
lea edx, [ebp - 0x1270]
push edx
lea eax, [ebp - 0xa70]
mov byte [edi + 4], cl
push eax
lea ecx, [ebp - 0x68]
call fcn.004046c0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00404980
mov ecx, dword [ebp - 0x1674]
call fcn.00403330
mov byte [ebp - 0xe70], 0
xor eax, eax
mov ecx, 0xff
lea edi, [ebp - 0xe6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x400
lea ecx, [ebp - 0xe70]
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0xe70]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403fa8
mov edx, dword [str.imbackinfo1.dat]
mov eax, dword [0x410928]
mov ecx, dword [0x41092c]
mov dword [edi], edx
mov edx, dword [0x410930]
mov dword [edi + 4], eax
mov al, byte [0x410934]
mov dword [edi + 8], ecx
lea ecx, [ebp - 0xe70]
mov dword [edi + 0xc], edx
push ecx
mov byte [edi + 0x10], al
call fcn.004012d0
add esp, 4
push 0x200000
call fcn.00404ee3
mov ebx, eax
add esp, 4
mov dword [ebp - 0x1680], ebx
mov edx, dword [ebp - 0x1674]
mov eax, dword [edx]
mov edi, dword [ebp - 0x167c]
push 0
push eax
push edi
mov byte [ebp - 4], 3
call fcn.00406814
add esp, 0xc
lea esp, [esp]
push edi
push 0x200000
push 1
push ebx
call fcn.00406551
push esi
push eax
push 1
push ebx
call fcn.004063ad
mov al, byte [edi + 0xc]
add esp, 0x20
test al, 0x10
je 0x404020
test esi, esi
je 0x40404f
push esi
call fcn.00405d5e
add esp, 4
lea ecx, [ebp - 0x468]
push ecx
push str._CBmpLoader::Start__1_szDstFile:_s
push 0x41037c
push 0x4150f8
call fcn.00401f50
add esp, 0x10
lea edx, [ebp - 0x468]
push edx
push str.__s_
push ebx
call fcn.0040624e
push ebx
push str._CBmpLoader::Start__2_szData:_s
push 0x41037c
push 0x4150f8
call fcn.00401f50
add esp, 0x1c
mov ecx, ebx
lea edx, [ebp - 0x468]
nop
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x4040a0
lea eax, [ebp - 0x468]
push eax
push str._CBmpLoader::Start__3_szDstFile:_s
push 0x41037c
push 0x4150f8
call fcn.00401f50
add esp, 0x10
push ebx
call fcn.00402ae0
add esp, 4
push ebx
push str._CBmpLoader::Start__4_szData:_s
push 0x41037c
push 0x4150f8
call fcn.00401f50
lea edi, [ebp - 0x468]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4040f0
mov ecx, dword [str.__o_]
mov dl, byte [0x410890]
mov dword [edi], ecx
mov eax, ebx
mov byte [edi + 4], dl
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404110
lea edi, [ebp - 0x468]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404120
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x468]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404140
mov eax, dword [str.___y]
mov cl, byte [0x410888]
lea edx, [ebp - 0x468]
push edx
push str._CBmpLoader::Start__5_szDstFile:_s
mov dword [edi], eax
push 0x41037c
push 0x4150f8
mov byte [edi + 4], cl
call fcn.00401f50
add esp, 0x10
push 0x410854
push 0x41037c
push 0x4150f8
call fcn.00401f50
add esp, 0xc
push 0x40
lea eax, [ebp - 0x468]
push 1
push eax
call fcn.00402a40
add esp, 0xc
test eax, eax
jne 0x4041c9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x468]
push ecx
push 0x410838
push 0x41037c
push 0x4150f8
call fcn.00401fc0
add esp, 0x14
push 0x41081c
push 0x41037c
push 0x4150f8
call fcn.00401f50
mov edi, ebx
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4041e3
mov edx, dword [str._rzx]
push ebx
push str._CBmpLoader::Start__6_szData:_s
mov dword [edi], edx
mov al, byte [0x41093c]
push 0x41037c
push 0x4150f8
mov byte [edi + 4], al
call fcn.00401f50
lea ecx, [ebp - 0x468]
add esp, 0x10
push ecx
call fcn.00402ae0
add esp, 4
lea edx, [ebp - 0x468]
push edx
push str._CBmpLoader::Start__7_szDstFile:_s
push 0x41037c
push 0x4150f8
call fcn.00401f50
lea edi, [ebp - 0x468]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404247
mov eax, dword [str.client]
mov ecx, dword [0x4107d4]
lea edx, [ebp - 0x468]
push edx
push str._CBmpLoader::Start__8_szDstFile:_s
mov dword [edi], eax
push 0x41037c
push 0x4150f8
mov dword [edi + 4], ecx
call fcn.00401f50
add esp, 0x10
lea eax, [ebp - 0x468]
push ebx
push eax
call fcn.00405bc7
add esp, 8
test eax, eax
je 0x4043bb
push 1
push ebx
call fcn.00401280
mov esi, 0xf
mov eax, ebx
add esp, 8
mov dword [ebp - 0x1684], esi
mov dword [ebp - 0x1688], 0
mov byte [ebp - 0x1698], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4042c1
sub eax, edx
push eax
push ebx
lea ecx, [ebp - 0x169c]
call fcn.00401e40
push 0x5c
lea ecx, [ebp - 0x169c]
push ecx
lea edx, [ebp - 0x16b8]
push edx
mov byte [ebp - 4], 4
call fcn.004031e0
add esp, 0xc
mov ecx, dword [eax + 0x18]
mov edi, 0x10
cmp ecx, edi
mov byte [ebp - 4], 5
jb 0x404308
mov eax, dword [eax + 4]
jmp 0x40430b
add eax, 4
push eax
call fcn.00401640
mov eax, dword [ebp - 0x16a0]
add esp, 4
cmp eax, edi
jb 0x40432d
mov eax, dword [ebp - 0x16b4]
push eax
call fcn.00406a16
add esp, 4
cmp dword [ebp - 0x1684], edi
mov dword [ebp - 0x16a0], esi
mov dword [ebp - 0x16a4], 0
mov byte [ebp - 0x16b4], 0
mov byte [ebp - 4], 3
jb 0x40435f
mov ecx, dword [ebp - 0x1698]
push ecx
call fcn.00406a16
add esp, 4
push ebx
push str._CBmpLoader::Start__10_szData:_s
push 0x41037c
push 0x4150f8
mov dword [ebp - 0x1684], esi
mov dword [ebp - 0x1688], 0
mov byte [ebp - 0x1698], 0
call fcn.00401f50
mov ecx, dword [ebp - 0x1674]
add esp, 0x10
push ebx
call fcn.00403930
lea edx, [ebp - 0x468]
push ebx
push edx
call fcn.004013e0
add esp, 8
lea eax, [ebp - 0x468]
push 1
push eax
call fcn.00401280
add esp, 8
mov byte [ebp - 0x56c], 0
xor eax, eax
mov ecx, 0x40
lea edi, [ebp - 0x56b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x56c]
push 0x104
push ecx
stosb byte es:[edi], al
call fcn.00402060
lea edi, [ebp - 0x56c]
add esp, 8
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4043f0
mov edx, dword [str.RzxInstall.log]
mov eax, dword [0x4103f4]
mov ecx, dword [0x4103f8]
mov dword [edi], edx
mov edx, dword [0x4103fc]
mov dword [edi + 4], eax
lea eax, [ebp - 0x56c]
mov dword [edi + 8], ecx
push 0x41026c
push eax
mov dword [edi + 0xc], edx
call fcn.00406455
mov edi, eax
add esp, 8
test edi, edi
je 0x404444
push ebx
push edi
call fcn.00407095
push edi
call fcn.00405d5e
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.00404760
lea ecx, [ebp - 0x468]
push ecx
call fcn.004015e0
mov eax, dword [ebp - 0x1674]
add esp, 4
add eax, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404466
lea edi, [ebp - 0x468]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404476
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x468]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404495
mov edx, dword [str..rzx]
mov al, byte [0x410964]
push ebx
lea ecx, [ebp - 0x670]
mov dword [edi], edx
push str._supclient.bmp
push ecx
mov byte [edi + 4], al
call fcn.0040624e
lea edx, [ebp - 0x468]
push edx
push str._CBmpLoader::Start__11_szDstFile:_s
push 0x41037c
push 0x4150f8
call fcn.00401f50
add esp, 0x1c
lea eax, [ebp - 0x670]
push eax
push str._CBmpLoader::Start__12_szBmpFile:_s
push 0x41037c
push 0x4150f8
call fcn.00401f50
add esp, 0x10
push 1
lea ecx, [ebp - 0x670]
push ecx
lea edx, [ebp - 0x468]
push edx
call fcn.004013a0
add esp, 0xc
test eax, eax
jne 0x404543
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x670]
push eax
lea ecx, [ebp - 0x468]
push ecx
push 0x4106f0
push 0x41037c
push 0x4150f8
call fcn.00401fc0
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, ebx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404558
mov edx, dword [str._rzxmon.exe]
mov dword [edi], edx
mov eax, dword [0x4106e8]
push 0x410968
mov dword [edi + 4], eax
mov ecx, dword [0x4106ec]
push 0x41037c
push 0x4150f8
mov dword [edi + 8], ecx
call fcn.00401f50
add esp, 0xc
call fcn.004011f0
push 0x4106c8
push 0x41037c
push 0x4150f8
call fcn.00401f50
add esp, 0xc
push 0x20
push 0
push ebx
call fcn.00402a40
add esp, 0xc
test eax, eax
jne 0x4045dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x4106ac
push 0x41037c
push 0x4150f8
call fcn.00401fc0
add esp, 0x14
mov edx, dword [ebp - 0x1680]
push edx
call fcn.00406a16
add esp, 4
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00404650
mov eax, dword [ebp - 0x1678]
test eax, eax
je 0x40460a
push eax
call fcn.00405d5e
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004054c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret