Function at 0x40bc50
Capabilities:
Delete file
Resolve function by parsing pe exports
Set current directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43da00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
mov eax, dword [esp + 0x350]
push ebx
push ebp
xor ebx, ebx
mov ebp, ecx
push esi
cmp eax, ebx
push edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x2c], ebx
jne 0x40bc96
cmp dword [esp + 0x34c], ebx
jne 0x40bc96
xor al, al
jmp 0x40c44b
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x5c], al
call fcn.00402b70
mov edi, str.launcher.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.launcher.exe
lea ecx, [esp + 0x60]
call fcn.00402d52
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x38], cl
lea ecx, [esp + 0x38]
mov dword [esp + 0x344], ebx
call fcn.00402b70
mov edi, str.launcher2.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.launcher2.exe
lea ecx, [esp + 0x3c]
call fcn.00402d52
mov dl, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x344], 1
mov byte [esp + 0x20], dl
call fcn.00402b70
mov edi, 0x454040
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x454040
lea ecx, [esp + 0x24]
call fcn.00402d52
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x344], 2
mov byte [esp + 0x4c], al
call fcn.00402b70
mov edi, 0x454040
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x454040
lea ecx, [esp + 0x50]
call fcn.00402d52
lea ecx, [esp + 0x90]
mov byte [esp + 0x340], 3
call fcn.0040f4a0
mov edi, dword [esp + 0x348]
lea ecx, [esp + 0x90]
push edi
push ecx
mov ecx, ebp
mov byte [esp + 0x348], 4
call fcn.0040afe0
mov edx, dword [esp + 0x34c]
lea ecx, [esp + 0x14]
push edx
call fcn.004348b9
mov eax, dword [esp + 0x354]
mov byte [esp + 0x340], 5
cmp eax, ebx
jne 0x40bde8
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x90]
push eax
call fcn.0040fa90
mov ebx, 1
mov dword [esp + 0x2c], ebx
mov eax, dword [eax]
mov byte [esp + 0x340], 6
push eax
lea ecx, [esp + 0x1c]
call fcn.004348b9
mov esi, 8
test bl, 1
mov dword [esp + 0x340], esi
je 0x40be13
and ebx, 0xfffffffe
lea ecx, [esp + 0x7c]
mov dword [esp + 0x2c], ebx
call fcn.0043488f
push 0x44e1c8
lea ecx, [esp + 0x18]
call fcn.0042ff30
mov al, byte [esp + 0x350]
test al, al
je 0x40be4f
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.0040b7f0
add esp, 8
or ebx, 2
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x340], 9
jmp 0x40be73
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x74]
push eax
push ecx
call fcn.0040b8e0
add esp, 8
or ebx, 4
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x340], 0xa
push eax
lea edx, [esp + 0x7c]
push 0x44e1c8
push edx
call fcn.00434b54
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x344], 0xb
call fcn.00434c63
lea ecx, [esp + 0x78]
mov byte [esp + 0x340], 0xa
call fcn.0043488f
test bl, 4
mov dword [esp + 0x340], 9
je 0x40bec9
and ebx, 0xfffffffb
lea ecx, [esp + 0x74]
mov dword [esp + 0x2c], ebx
call fcn.0043488f
test bl, 2
mov dword [esp + 0x340], esi
je 0x40bede
lea ecx, [esp + 0x30]
call fcn.0043488f
push edi
mov ecx, ebp
call fcn.0040bc00
test al, al
je 0x40bf9a
mov eax, dword [esp + 0x14]
push eax
call fcn.0040b9b0
mov ecx, dword [esp + 0xb8]
mov edx, dword [esp + 0x18]
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x340], 5
call fcn.0043488f
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 4
call fcn.0043488f
lea ecx, [esp + 0x90]
mov byte [esp + 0x340], 3
call fcn.0040f520
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x344], 2
call fcn.00402b70
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x344], 1
call fcn.00402b70
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x344], 0
call fcn.00402b70
push 1
lea ecx, [esp + 0x5c]
mov dword [esp + 0x344], 0xffffffff
call fcn.00402b70
mov al, 1
jmp 0x40c44b
mov eax, dword [esp + 0x4c]
test eax, eax
jne 0x40bfa7
mov eax, 0x440680
push eax
lea ecx, [esp + 0x1c]
call fcn.0042fb97
cmp eax, 0xffffffff
je 0x40bfc0
mov eax, dword [esp + 0x35c]
mov byte [eax], 1
mov ecx, dword [esp + 0x34c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1f8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xffffffff
je 0x40c034
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0xe0]
push ecx
push edx
call fcn.004360ef
mov al, byte [esp + 0xf0]
test al, 1
je 0x40c034
mov ecx, dword [esp + 0x14]
mov dl, al
lea eax, [esp + 0xe0]
and dl, 0xfe
push eax
push ecx
mov dword [esp + 0xec], 0
mov byte [esp + 0xf8], dl
call fcn.00436254
push edi
mov ecx, ebp
call fcn.0040b0f0
test al, al
jne 0x40c0d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x340], 5
call fcn.0043488f
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 4
call fcn.0043488f
lea ecx, [esp + 0x90]
mov byte [esp + 0x340], 3
call fcn.0040f520
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x344], 2
call fcn.00402b70
push 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x344], 1
call fcn.00402b70
push 1
lea ecx, [esp + 0x38]
mov byte [esp + 0x344], 0
call fcn.00402b70
push 1
lea ecx, [esp + 0x5c]
mov dword [esp + 0x344], 0xffffffff
call fcn.00402b70
xor al, al
jmp 0x40c44b
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push eax
call fcn.0040b6d0
mov eax, dword [eax]
mov byte [esp + 0x348], 0xc
push eax
call fcn.0040b9b0
add esp, 0xc
lea ecx, [esp + 0x30]
mov byte [esp + 0x340], 8
call fcn.0043488f
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x24]
call fcn.00402d52
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x60]
cmp ecx, eax
jb 0x40c27d
lea ecx, [esp + 0x1c]
call fcn.00402b44
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x1c]
call fcn.00402b44
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40c150
xor ebx, ebx
jmp 0x40c157
mov edx, dword [esp + 0x24]
lea ebx, [edx + eax]
lea ecx, [esp + 0x1c]
call fcn.00402b44
mov esi, dword [esp + 0x20]
dec ebx
cmp esi, ebx
je 0x40c17d
movsx eax, byte [esi]
push eax
call fcn.0041f068
add esp, 4
mov byte [edi], al
inc esi
inc edi
cmp esi, ebx
jne 0x40c169
mov ecx, dword [0x44067c]
mov eax, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x5c]
push 0
push edx
sub ecx, eax
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.0040c960
test eax, eax
jne 0x40c27d
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x40c1b5
mov eax, 0x440680
push 0x44e760
push eax
call fcn.0041e8c7
add esp, 8
test eax, eax
je 0x40c1e4
push eax
call fcn.0041e6e0
mov eax, dword [esp + 0x3c]
add esp, 4
test eax, eax
jne 0x40c1dd
mov eax, 0x440680
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
call fcn.00402b44
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40c1f9
xor edi, edi
jmp 0x40c200
mov edx, dword [esp + 0x24]
lea edi, [edx + eax]
lea ecx, [esp + 0x1c]
call fcn.00402b44
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40c217
mov ecx, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [esp + 0x60]
sub eax, ecx
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00402b44
test esi, esi
jne 0x40c230
xor ecx, ecx
jmp 0x40c238
mov eax, dword [esp + 0x20]
mov ecx, esi
sub ecx, eax
test edi, edi
jne 0x40c240
xor eax, eax
jmp 0x40c244
sub edi, esi
mov eax, edi
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00402d87
mov edx, dword [0x44067c]
lea eax, [esp + 0x34]
push edx
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.004038a9
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40c273
mov eax, 0x440680
push eax
lea ecx, [esp + 0x18]
call fcn.004349d4
mov ecx, dword [esp + 0x14]
push 0x1021
push ecx
lea ecx, [esp + 0x88]
call fcn.00430c45
mov ebx, dword [esp + 0x358]
mov byte [esp + 0x340], 0xd
test ebx, ebx
je 0x40c2b6
lea ecx, [esp + 0x90]
call fcn.0040fa40
mov ebp, eax
jmp 0x40c2b8
xor ebp, ebp
mov edx, dword [esp + 0x360]
xor edi, edi
push edi
push edx
lea ecx, [esp + 0x70]
call fcn.0040dcb0
mov eax, dword [esp + 0x70]
mov byte [esp + 0x340], 0xe
mov ecx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x70]
push eax
call fcn.0040b2c0
mov esi, eax
test esi, esi
je 0x40c318
mov ecx, dword [esp + 0x6c]
push esi
push ecx
lea ecx, [esp + 0x88]
call fcn.00430ef9
add edi, esi
test ebx, ebx
je 0x40c318
mov edx, dword [esp + 0x35c]
push edx
push edi
push ebp
call ebx
add esp, 0xc
test al, al
je 0x40c320
mov eax, dword [esp + 0x70]
cmp esi, eax
je 0x40c2d8
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x80]
push eax
call fcn.0040b500
cmp eax, 1
lea ecx, [esp + 0x68]
sete bl
mov byte [esp + 0x340], 0xd
call fcn.0040dce0
lea ecx, [esp + 0x80]
mov byte [esp + 0x340], 8
call fcn.00430ce5
lea ecx, [esp + 0x18]
mov byte [esp + 0x340], 5
call fcn.0043488f
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], 4
call fcn.0043488f
lea ecx, [esp + 0x90]
mov byte [esp + 0x340], 3
call fcn.0040f520
mov eax, dword [esp + 0x4c]
xor esi, esi
cmp eax, esi
je 0x40c3b9
mov cl, byte [eax - 1]
test cl, cl
je 0x40c3af
cmp cl, 0xff
je 0x40c3af
dec cl
mov byte [eax - 1], cl
jmp 0x40c3b9
dec eax
push eax
call fcn.00430be5
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], esi
cmp ecx, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
je 0x40c3e9
mov al, byte [ecx - 1]
test al, al
je 0x40c3df
cmp al, 0xff
je 0x40c3df
dec al
mov byte [ecx - 1], al
jmp 0x40c3e9
dec ecx
push ecx
call fcn.00430be5
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], esi
cmp ecx, esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
je 0x40c419
mov al, byte [ecx - 1]
test al, al
je 0x40c40f
cmp al, 0xff
je 0x40c40f
dec al
mov byte [ecx - 1], al
jmp 0x40c419
dec ecx
push ecx
call fcn.00430be5
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x38], esi
cmp ecx, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
je 0x40c449
mov al, byte [ecx - 1]
test al, al
je 0x40c43f
cmp al, 0xff
je 0x40c43f
dec al
mov byte [ecx - 1], al
jmp 0x40c449
dec ecx
push ecx
call fcn.00430be5
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x338]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x334
ret 0x1c