Function at 0x408050
Capabilities:
Delete file
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4388c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5b0
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], 1
call fcn.0040aa50
xor esi, esi
mov dword [esp + 0x5c8], esi
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov ebp, dword [edi - 4]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, ebp
sub eax, 0x104
or eax, ecx
mov byte [esp + 0x5c8], 1
jge 0x4080cc
push 0x104
lea ecx, [esp + 0x1c]
call fcn.00401470
mov edi, dword [esp + 0x18]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp edi, esi
jne 0x4080e0
xor eax, eax
jmp 0x4080ee
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4080e5
sub eax, edx
mov dword [edi - 0xc], eax
mov byte [eax + edi], 0
push str.RyClient.ini
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
call fcn.004020a0
push str.SuperPro.ini
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x5e0], 2
call fcn.004020a0
push str.UltraPro.ini
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x5ec], 3
call fcn.004020a0
add esp, 0x24
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x6c]
push eax
push ecx
mov byte [esp + 0x5d0], 4
call sub.MFC70.DLL_Ordinal_3196
mov ebp, dword [esp + 0x30]
lea edx, [esp + 0x6c]
push edx
test eax, eax
push ebp
setne byte [esp + 0x2b]
call sub.MFC70.DLL_Ordinal_3196
mov ecx, dword [esp + 0x28]
test eax, eax
lea eax, [esp + 0x6c]
push eax
push ecx
setne bl
call sub.MFC70.DLL_Ordinal_3196
test eax, eax
setne al
test al, al
jne 0x40853c
cmp word [esp + 0x24], si
je 0x408742
test bl, bl
je 0x408503
cmp dword [0x44305c], esi
jne 0x4081db
mov ecx, 0x46b9a8
call fcn.0040a660
mov dword [esp + 0x1c], esi
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x194]
mov byte [esp + 0x5c8], 5
call fcn.0040a130
push ebp
lea ecx, [esp + 0x4c]
mov byte [esp + 0x5cc], 6
call fcn.0040b050
jmp 0x408220
push 0x43abb0
lea ecx, [esp + 0x14]
call fcn.004022a0
mov eax, dword [esp + 0x1c]
push 0xa
lea ecx, [esp + 0x38]
inc eax
push ecx
push eax
mov byte [esp + 0x5d4], 7
mov dword [esp + 0x28], eax
call dword [sym.imp.MSVCR70.dll__itoa]
lea eax, [esp + 0x40]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x408257
sub eax, ecx
lea edx, [esp + 0x34]
mov esi, eax
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 4]
mov ebx, dword [edx - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [edx - 8]
lea ebp, [ebx + esi]
lea edi, [esp + 0x34]
sub eax, ebp
sub edi, edx
or eax, ecx
jge 0x40829b
push ebp
lea ecx, [esp + 0x14]
call fcn.00401470
mov edx, dword [esp + 0x10]
cmp edi, ebx
ja 0x4082a3
add edi, edx
jmp 0x4082a7
mov edi, dword [esp + 0x3c]
mov ecx, esi
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebx + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 0xc], ebp
mov edx, dword [esp + 0x10]
push str.NetAddress
mov byte [edx + ebp], 0
mov eax, dword [esp + 0x14]
push 0x43a8da
push eax
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x58]
call fcn.0040b0a0
mov eax, dword [eax]
mov ebx, dword [esp + 0x14]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
mov byte [esp + 0x5c8], 8
je 0x40838f
mov ecx, dword [ebx + 0xc]
test ecx, ecx
jge 0x40831b
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401690
jmp 0x40838f
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x40833d
cmp eax, dword [esi]
jne 0x40833d
mov ebp, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x408371
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
mov ebp, eax
test ebp, ebp
je 0x408807
mov edx, dword [esi + 4]
mov dword [ebp + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov eax, ecx
shr ecx, 2
add esi, 0x10
lea edi, [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x408388
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
add ebp, 0x10
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x14]
push 0x43a8da
push eax
call dword [sym.imp.MSVCR70.dll__mbscmp]
mov ebx, eax
mov eax, dword [esp + 0x4c]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
mov byte [esp + 0x5c8], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
jne 0x408499
lea ecx, [esp + 0x194]
call fcn.00409a40
mov ebx, dword [esp + 0x14]
mov esi, dword [ebx - 4]
mov ecx, dword [ebx - 8]
mov eax, 1
sub eax, esi
or ecx, eax
jge 0x408408
push 0
lea ecx, [esp + 0x18]
call fcn.00401470
mov ebx, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x198]
call fcn.00409a80
test ebx, ebx
jne 0x40841d
xor eax, eax
jmp 0x40842b
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408422
sub eax, edx
mov dword [ebx - 0xc], eax
lea ecx, [esp + 0x194]
mov byte [eax + ebx], 0
call fcn.0040a0c0
test al, al
je 0x40846a
mov eax, dword [esp + 0x5d0]
push eax
lea ecx, [esp + 0x198]
call fcn.0040a200
test al, al
lea ecx, [esp + 0x194]
jne 0x4085c2
call fcn.00409ae0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x5c8], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408220
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x408220
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x5c8], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4084bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x194]
mov byte [esp + 0x5c8], 5
call fcn.0040a1b0
lea eax, [ebx - 0x10]
mov byte [esp + 0x5c8], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4084f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x18]
xor esi, esi
cmp word [esp + 0x24], si
je 0x408742
mov al, byte [esp + 0x23]
test al, al
je 0x408528
call fcn.004062b0
cmp ax, si
mov dword [esp + 0x24], eax
je 0x408724
cmp dword [0x44305c], esi
je 0x408742
mov dword [0x44305c], esi
mov bl, 1
mov ecx, 0x46c204
call fcn.0040c650
mov ecx, dword [esp + 0x28]
mov dword [0x46b95c], eax
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [0x46b95c]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov ecx, dword [0x46b95c]
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
jne 0x4081b6
mov ecx, dword [0x46b95c]
mov eax, dword [esp + 0x5d0]
mov edx, dword [ecx]
push eax
call dword [edx + 0x34]
test eax, eax
je 0x4081b6
mov ecx, dword [0x46b95c]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov dword [0x46b964], 3
mov dword [esp + 0x28], esi
call edi
mov eax, dword [esp + 0x2c]
push eax
call edi
mov edi, dword [esp + 0x18]
jmp 0x4081b6
call fcn.00409aa0
cmp dword [esp + 0x1c], 1
je 0x4086d3
call sub.MFC70.DLL_Ordinal_982
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
push str.NetAddress
push 0x43a8da
push 0x43ab70
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x5d8], 9
call fcn.0040b0a0
mov eax, dword [eax]
lea ecx, [eax - 0x10]
lea edi, [esi - 0x10]
cmp ecx, edi
mov byte [esp + 0x5c8], 0xa
je 0x408663
mov edx, dword [edi + 0xc]
test edx, edx
lea ebp, [edi + 0xc]
jge 0x40863c
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00401690
mov esi, dword [esp + 0x1c]
jmp 0x408663
push ecx
call fcn.004014c0
add esp, 4
mov esi, eax
or ecx, 0xffffffff
lock xadd dword [ebp], ecx
dec ecx
test ecx, ecx
jg 0x40865c
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
add esi, 0x10
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x5c8], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408689
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push str.NetAddress
push esi
push eax
lea ecx, [esp + 0x54]
call fcn.0040b300
push str.NetAddress
push ebx
push 0x43ab70
lea ecx, [esp + 0x54]
call fcn.0040b300
add esi, 0xfffffff0
mov byte [esp + 0x5c8], 7
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086d3
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x5c8], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4086f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
mov dword [0x46b964], 2
mov dword [esp + 0x28], 0
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call esi
jmp 0x4084c3
mov dword [esp + 0x24], esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
mov dword [0x46b964], 1
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x5c8], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add ebp, 0xfffffff0
mov byte [esp + 0x5c8], 2
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40878b
mov ecx, dword [ebp]
mov edx, dword [ecx]
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x5c8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4087b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
add edi, 0xfffffff0
mov byte [esp + 0x5c8], 0
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4087d3
mov ecx, dword [edi]
mov edx, dword [ecx]
push edi
call dword [edx + 4]
lea ecx, [esp + 0x48]
mov dword [esp + 0x5c8], 0xffffffff
call fcn.0040abb0
mov ecx, dword [esp + 0x5c0]
mov ax, word [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5bc
ret 4
call fcn.004011b0
int3