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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40fb24
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x16a8
call fcn.00406b30
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.00401f40
push 0x4109b8
push 0x41037c
push 0x4150f8
mov dword [ebp - 4], 0
call fcn.00401f40
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.00406495
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [ebp - 0x167c], ebx
jne 0x403e18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x1670]
push edx
push 0x410994
push 0x41037c
push 0x4150f8
call fcn.00401fb0
add esp, 0x14
push 0x41097c
push 0x41037c
push 0x4150f8
call fcn.00401f40
add esp, 0xc
call fcn.004011f0
or eax, 0xffffffff
jmp 0x40464c
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 0x403e36
lea edi, [ebp - 0x468]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403e46
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 0x403e65
mov ecx, dword [str..rzx]
mov dl, byte [0x410978]
lea eax, [ebp - 0x468]
mov dword [edi], ecx
push 0x41026c
push eax
mov byte [edi + 4], dl
call fcn.00406495
mov esi, eax
add esp, 8
test esi, esi
jne 0x403eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x468]
push ecx
push 0x410954
push 0x41037c
push 0x4150f8
call fcn.00401fb0
add esp, 0x14
push 0x41097c
push 0x41037c
push 0x4150f8
call fcn.00401f40
add esp, 0xc
call fcn.004011f0
push ebx
call fcn.00405d9e
add esp, 4
or eax, 0xffffffff
jmp 0x40464c
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 0x403f71
mov eax, dword [str._rzx]
mov cl, byte [0x410950]
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.00404700
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.004049c0
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 0x403fe8
mov edx, dword [str.imbackinfo1.dat]
mov eax, dword [0x41093c]
mov ecx, dword [0x410940]
mov dword [edi], edx
mov edx, dword [0x410944]
mov dword [edi + 4], eax
mov al, byte [0x410948]
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.00404f23
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.00406854
add esp, 0xc
lea esp, [esp]
push edi
push 0x200000
push 1
push ebx
call fcn.00406591
push esi
push eax
push 1
push ebx
call fcn.004063ed
mov al, byte [edi + 0xc]
add esp, 0x20
test al, 0x10
je 0x404060
test esi, esi
je 0x40408f
push esi
call fcn.00405d9e
add esp, 4
lea ecx, [ebp - 0x468]
push ecx
push str._CBmpLoader::Start__1_szDstFile:_s
push 0x41037c
push 0x4150f8
call fcn.00401f40
add esp, 0x10
lea edx, [ebp - 0x468]
push edx
push str.__s_
push ebx
call fcn.0040628e
push ebx
push str._CBmpLoader::Start__2_szData:_s
push 0x41037c
push 0x4150f8
call fcn.00401f40
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 0x4040e0
lea eax, [ebp - 0x468]
push eax
push str._CBmpLoader::Start__3_szDstFile:_s
push 0x41037c
push 0x4150f8
call fcn.00401f40
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.00401f40
lea edi, [ebp - 0x468]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404130
mov ecx, dword [str.__o_]
mov dl, byte [0x4108a4]
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 0x404150
lea edi, [ebp - 0x468]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x404160
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 0x404180
mov eax, dword [str.___y]
mov cl, byte [0x41089c]
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.00401f40
add esp, 0x10
push 0x410868
push 0x41037c
push 0x4150f8
call fcn.00401f40
add esp, 0xc
push 0x40
lea eax, [ebp - 0x468]
push 1
push eax
call fcn.00402a40
add esp, 0xc
test eax, eax
jne 0x404209
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x468]
push ecx
push 0x41084c
push 0x41037c
push 0x4150f8
call fcn.00401fb0
add esp, 0x14
push 0x410830
push 0x41037c
push 0x4150f8
call fcn.00401f40
mov edi, ebx
add esp, 0xc
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404223
mov edx, dword [str._rzx]
push ebx
push str._CBmpLoader::Start__6_szData:_s
mov dword [edi], edx
mov al, byte [0x410950]
push 0x41037c
push 0x4150f8
mov byte [edi + 4], al
call fcn.00401f40
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.00401f40
lea edi, [ebp - 0x468]
add esp, 0x10
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404287
mov eax, dword [str.client]
mov ecx, dword [0x4107e8]
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.00401f40
add esp, 0x10
lea eax, [ebp - 0x468]
push ebx
push eax
call fcn.00405c07
add esp, 8
test eax, eax
je 0x4043fb
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 0x404301
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 0x404348
mov eax, dword [eax + 4]
jmp 0x40434b
add eax, 4
push eax
call fcn.00401640
mov eax, dword [ebp - 0x16a0]
add esp, 4
cmp eax, edi
jb 0x40436d
mov eax, dword [ebp - 0x16b4]
push eax
call fcn.00406a56
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 0x40439f
mov ecx, dword [ebp - 0x1698]
push ecx
call fcn.00406a56
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.00401f40
mov ecx, dword [ebp - 0x1674]
add esp, 0x10
push ebx
call fcn.00403970
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.00402050
lea edi, [ebp - 0x56c]
add esp, 8
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x404430
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.00406495
mov edi, eax
add esp, 8
test edi, edi
je 0x404484
push ebx
push edi
call fcn.004070d5
push edi
call fcn.00405d9e
add esp, 0xc
lea ecx, [ebp - 0x68]
call fcn.004047a0
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 0x4044a6
lea edi, [ebp - 0x468]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4044b6
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 0x4044d5
mov edx, dword [str..rzx]
mov al, byte [0x410978]
push ebx
lea ecx, [ebp - 0x670]
mov dword [edi], edx
push str._supclient.bmp
push ecx
mov byte [edi + 4], al
call fcn.0040628e
lea edx, [ebp - 0x468]
push edx
push str._CBmpLoader::Start__11_szDstFile:_s
push 0x41037c
push 0x4150f8
call fcn.00401f40
add esp, 0x1c
lea eax, [ebp - 0x670]
push eax
push str._CBmpLoader::Start__12_szBmpFile:_s
push 0x41037c
push 0x4150f8
call fcn.00401f40
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 0x404583
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x670]
push eax
lea ecx, [ebp - 0x468]
push ecx
push 0x410704
push 0x41037c
push 0x4150f8
call fcn.00401fb0
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 0x404598
mov edx, dword [str._rzxmon.exe]
mov dword [edi], edx
mov eax, dword [0x4106fc]
push 0x41097c
mov dword [edi + 4], eax
mov ecx, dword [0x410700]
push 0x41037c
push 0x4150f8
mov dword [edi + 8], ecx
call fcn.00401f40
add esp, 0xc
call fcn.004011f0
push 0x4106dc
push 0x41037c
push 0x4150f8
call fcn.00401f40
add esp, 0xc
push 0x20
push 0
push ebx
call fcn.00402a40
add esp, 0xc
test eax, eax
jne 0x40461c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x4106c0
push 0x41037c
push 0x4150f8
call fcn.00401fb0
add esp, 0x14
mov edx, dword [ebp - 0x1680]
push edx
call fcn.00406a56
add esp, 4
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.00404690
mov eax, dword [ebp - 0x1678]
test eax, eax
je 0x40464a
push eax
call fcn.00405d9e
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00405500
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret