Function at 0x413cb0
Capabilities:
Check if file exists
Delete file
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x98
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
xor ebx, ebx
push esi
push edi
mov dword [0x47fd78], ebx
cmp byte [0x47fd75], bl
jne 0x413cf2
mov esi, str.Not_yet_call_Init
mov dword [0x47fd78], 0x28
call fcn.00405780
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
cmp ebp, ebx
je 0x414532
cmp dword [esp + 0xb0], ebx
je 0x414532
lea ecx, [esp + 0x18]
call fcn.00402160
lea ecx, [esp + 0x14]
call fcn.00402160
lea ecx, [esp + 0x40]
call fcn.00402160
lea ecx, [esp + 0x34]
call fcn.00402160
lea ecx, [esp + 0x30]
call fcn.00402160
lea ecx, [esp + 0x1c]
call fcn.00402160
lea ecx, [esp + 0x3c]
call fcn.00402160
lea ecx, [esp + 0x38]
call fcn.00402160
lea ecx, [esp + 0x24]
call fcn.00402160
lea esi, [esp + 0x78]
call fcn.00403030
push str.rootfolder.enc
lea eax, [esp + 0x30]
push 0x480044
push eax
call fcn.00403810
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
call fcn.00401940
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413da2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.rootfolder.ini
lea ecx, [esp + 0x30]
push 0x480044
push ecx
call fcn.00403810
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.00401940
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413de3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0xa4], ebx
call fcn.00401940
push str.rootfolder.enc
lea edx, [esp + 0x30]
push 0x480040
push edx
call fcn.00403810
add esp, 0xc
push eax
lea ecx, [esp + 0x84]
call fcn.00401940
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413e3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x47fd80
push 0x50
push 0x47fd78
lea ebx, [esp + 0x84]
call fcn.00406920
add esp, 0xc
test eax, eax
jne 0x413f29
push str._failed
push str.rootfolder.enc
lea ecx, [esp + 0x28]
mov dword [0x47fd78], 0x1d
call fcn.00401860
push eax
lea ecx, [esp + 0x30]
push str.Download
push ecx
call fcn.004038f0
add esp, 0xc
push eax
lea edx, [esp + 0x34]
push edx
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0x2c]
call fcn.00402140
lea ecx, [esp + 0x28]
call fcn.00402140
lea ecx, [esp + 0x20]
call fcn.00402140
lea esi, [esp + 0x78]
call fcn.004032e0
lea ecx, [esp + 0x24]
call fcn.00402140
lea ecx, [esp + 0x38]
call fcn.00402140
lea ecx, [esp + 0x3c]
call fcn.00402140
lea ecx, [esp + 0x1c]
call fcn.00402140
lea ecx, [esp + 0x30]
call fcn.00402140
lea ecx, [esp + 0x34]
call fcn.00402140
lea ecx, [esp + 0x40]
call fcn.00402140
lea ecx, [esp + 0x14]
call fcn.00402140
lea ecx, [esp + 0x18]
call fcn.00402140
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push esi
call fcn.00405bd0
add esp, 4
test eax, eax
jne 0x413f8b
mov dword [0x47fd78], 0x16
push str._failed
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push str.Unpack
push ecx
call fcn.004038f0
add esp, 0xc
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0x20]
call fcn.00402140
lea ecx, [esp + 0x28]
jmp 0x413ebd
push 0x4681d8
lea eax, [esp + 0x44]
push str._sFolder
push eax
call fcn.00401e30
mov ebx, dword [esp + 0x4c]
lea ecx, [esp + 0x40]
add esp, 0xc
push ecx
mov edi, str.ServerConfig
call fcn.004074d0
mov edx, dword [esp + 0x38]
mov eax, dword [0x480040]
add esp, 4
push ebp
push edx
push eax
lea ecx, [esp + 0x3c]
push str._s_s_s_
push ecx
call fcn.00401e30
add esp, 0x14
push str.filelist.enc
lea edx, [esp + 0x24]
push 0x480044
push edx
call fcn.00403810
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
call fcn.00401940
lea ecx, [esp + 0x20]
call fcn.00402140
push str.filelist.ini
lea eax, [esp + 0x24]
push 0x480044
push eax
call fcn.00403810
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.00401940
lea ecx, [esp + 0x20]
call fcn.00402140
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0xa4], 0
call fcn.00401940
push str.filelist.enc
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00403810
add esp, 0xc
push eax
lea ecx, [esp + 0x84]
call fcn.00401940
lea ecx, [esp + 0x20]
call fcn.00402140
push 0x47fd80
push 0x50
push 0x47fd78
lea ebx, [esp + 0x84]
call fcn.00406920
add esp, 0xc
test eax, eax
jne 0x4140fb
cmp dword [0x47fd78], 0x15
jne 0x4140a5
mov dword [0x47fd78], 0x1e
push str._failed
push str.filelist.enc
lea ecx, [esp + 0x34]
call fcn.00401860
push eax
lea ecx, [esp + 0x30]
push str.Download
push ecx
call fcn.004038f0
add esp, 0xc
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0x20]
call fcn.00402140
lea ecx, [esp + 0x28]
call fcn.00402140
lea ecx, [esp + 0x2c]
jmp 0x413ebd
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push esi
call fcn.00405bd0
add esp, 4
test eax, eax
jne 0x41411f
mov dword [0x47fd78], 0x17
jmp 0x413f48
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
call fcn.00401940
lea ecx, [esp + 0x64]
call fcn.00415029
push esi
lea edi, [esp + 0x68]
call fcn.00407570
add esp, 4
test eax, eax
jne 0x4141a0
push str._failed
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x30]
push str.Read_file
push edx
mov dword [0x47fd78], 3
call fcn.004038f0
add esp, 0xc
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0x20]
call fcn.00402140
lea ecx, [esp + 0x28]
call fcn.00402140
mov ecx, edi
call fcn.00415206
jmp 0x413ec2
mov ecx, dword [esp + 0xb0]
push ecx
lea ecx, [esp + 0x20]
call fcn.00402080
mov edi, dword [esp + 0x1c]
call fcn.004060e0
mov eax, dword [edi - 0xc]
test eax, eax
jle 0x4141e1
lea ecx, [eax - 1]
lea eax, [esp + 0x1c]
call fcn.0040cf30
cmp ax, 0x5c
je 0x4141e1
push 0x46df28
lea ecx, [esp + 0x20]
call fcn.00403390
mov ebp, 1
cmp dword [esp + 0x6c], ebp
jle 0x414456
push ebp
lea ecx, [esp + 0x68]
call fcn.00401920
push eax
lea ecx, [esp + 0x18]
call fcn.00401940
push str..enc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00403810
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
call fcn.00401940
lea ecx, [esp + 0x20]
call fcn.00402140
mov esi, dword [esp + 0xb4]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0xac], esi
call fcn.00403750
add esp, 0xc
push eax
lea ecx, [esp + 0x80]
call fcn.00401940
lea ecx, [esp + 0x28]
call fcn.00402140
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.00403750
add esp, 0xc
push eax
lea ecx, [esp + 0x84]
call fcn.00401940
lea ecx, [esp + 0x2c]
call fcn.00402140
test esi, esi
je 0x4142c5
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.00403750
mov edx, dword [esi]
mov eax, dword [eax]
mov edx, dword [edx]
add esp, 0xc
push eax
mov ecx, esi
call edx
lea ecx, [esp + 0x50]
call fcn.00402140
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.00403750
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x4c]
mov esi, eax
call fcn.00402140
test esi, esi
je 0x4143a5
lea ecx, [esp + 0x24]
call fcn.00402200
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00403750
mov edx, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00407880
lea ecx, [esp + 0x58]
call fcn.00402140
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
je 0x4143a5
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x3c]
lea ecx, [esp + 0x38]
push ecx
mov ebx, str.CheckSum
call fcn.004074d0
mov edx, dword [esp + 0x3c]
add esp, 4
push edx
lea ecx, [esp + 0x28]
call fcn.00404c20
test eax, eax
jne 0x4143a5
push str.____downloaded
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x68]
push str.File__
push ecx
call fcn.004038f0
add esp, 0xc
push eax
lea edx, [esp + 0x5c]
push edx
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0x54]
call fcn.00402140
lea ecx, [esp + 0x60]
jmp 0x414446
push 0x47fd80
push 0x50
push 0x47fd78
lea ebx, [esp + 0x84]
call fcn.00406920
add esp, 0xc
lea edx, [esp + 0x48]
test eax, eax
je 0x4144c6
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
call fcn.00403750
mov esi, dword [eax]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.00403750
mov eax, dword [eax]
add esp, 0xc
push esi
call fcn.00405bd0
add esp, 4
test eax, eax
lea ecx, [esp + 0x5c]
sete bl
call fcn.00402140
lea ecx, [esp + 0x48]
call fcn.00402140
test bl, bl
jne 0x414513
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00403750
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x44]
call fcn.00402140
inc ebp
cmp ebp, dword [esp + 0x6c]
jl 0x4141f0
lea ecx, [esp + 0x64]
call fcn.00415206
lea esi, [esp + 0x78]
call fcn.004032e0
lea ecx, [esp + 0x24]
call fcn.00402140
lea ecx, [esp + 0x38]
call fcn.00402140
lea ecx, [esp + 0x3c]
call fcn.00402140
lea ecx, [esp + 0x1c]
call fcn.00402140
lea ecx, [esp + 0x30]
call fcn.00402140
lea ecx, [esp + 0x34]
call fcn.00402140
lea ecx, [esp + 0x40]
call fcn.00402140
lea ecx, [esp + 0x14]
call fcn.00402140
lea ecx, [esp + 0x18]
call fcn.00402140
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
push str.____failed
lea ecx, [esp + 0x18]
push ecx
push str.Download_file__
push edx
call fcn.004038f0
add esp, 0xc
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00403810
mov esi, dword [eax]
add esp, 0xc
call fcn.00405780
lea ecx, [esp + 0x44]
call fcn.00402140
lea ecx, [esp + 0x48]
call fcn.00402140
lea ecx, [esp + 0x64]
call fcn.00415206
jmp 0x413ec2
push str.____Failed
lea ecx, [esp + 0x1c]
push ecx
mov dword [0x47fd78], 0x17
push str.Unpack_file__
lea edx, [esp + 0x54]
jmp 0x4144d5
mov esi, str.Invalid_parameter
mov dword [0x47fd78], 0x29
call fcn.00405780
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x98
ret