Function at 0x427660
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59f561
mov eax, dword fs:[0]
push eax
sub esp, 0xdec
mov eax, dword [0x62bcc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xdc4], ebx
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call fcn.00501660
add esp, 0xc
mov dword [ebp - 0xd68], 0
lea ecx, [ebp - 0xdf8]
call fcn.0042f800
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0xd9c], xmm0
mov dword [ebp - 0xd94], 0
mov dword [ebp - 0xd90], 0
mov dword [ebp - 0xd8c], 0
mov dword [ebp - 0xd88], 0
lea ecx, [ebp - 0x84c]
mov byte [ebp - 4], 1
call fcn.00407220
push 0x617744
push ebx
push 0x911ff9
push str._s_s._s
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push 0x104
push eax
call fcn.00407c20
add esp, 0x18
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0xdf8]
push 0
push 0
push 0
push eax
call fcn.0042f880
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xde0], eax
test eax, eax
je 0x42776b
mov ebx, 0x19
jmp 0x42813d
push 0xffff
xor edx, edx
lea ecx, [ebp - 0xdf8]
call fcn.004275f0
add esp, 4
cmp eax, 0xffffffff
jne 0x42778d
lea ebx, [eax + 0x28]
jmp 0x42813d
mov ebx, dword [ebp - 0xdf8]
lea ecx, [ebp - 0xdf8]
push 1
movq xmm0, qword [ebx + eax + 0xc]
movq qword [ebp - 0x328], xmm0
mov eax, dword [ebx + eax + 0x14]
mov edx, dword [ebp - 0x328]
mov dword [ebp - 0x320], eax
call fcn.004275f0
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
jne 0x4277d0
lea ebx, [eax + 0x13]
jmp 0x42813d
movzx esi, word [ebx + ecx + 2]
mov edi, dword [ebx + ecx + 8]
add ebx, 0xc
add ebx, ecx
lea ecx, [ebp - 0xd64]
call fcn.00407220
push 0xffffffffffffffff
lea ecx, [ebp - 0xd64]
mov byte [ebp - 4], 3
call fcn.00486550
xor eax, eax
lea ecx, [ebp - 0xd64]
cmp esi, 1
setne al
add eax, 3
push eax
push edi
push ebx
call fcn.00486a70
lea ecx, [ebp - 0xd64]
test al, al
jne 0x427830
mov byte [ebp - 4], 2
call fcn.00407330
mov ebx, 0x18
jmp 0x428137
call fcn.00486490
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd64]
mov dword [ebp - 0xd70], esi
call fcn.00407330
mov edi, dword [ebp - 0x324]
mov eax, edi
cdq
idiv esi
mov ecx, dword [ebp - 0x328]
mov ebx, ecx
mov dword [ebp - 0xd78], eax
and ebx, 1
mov eax, dword [ebp - 0x320]
add ebx, ebx
cdq
or ebx, 1
idiv esi
test cl, 0x10
mov dword [ebp - 0xdc8], ebx
mov dword [ebp - 0xdb8], eax
mov esi, 1
mov eax, 0xc
cmovne esi, eax
mov eax, ecx
and al, 3
mov dword [ebp - 0xda0], esi
cmp al, 1
jne 0x4278d5
push 0x6167a4
push dword [ebp - 0xdc4]
lea eax, [ebp - 0x31c]
push 0x911ff9
push str._s_s._s
push 0x104
push eax
call fcn.00407c20
mov edi, dword [ebp - 0x324]
add esp, 0x18
mov ecx, dword [ebp - 0x328]
and cl, 3
cmp cl, 2
jne 0x42790c
push 0x6167a4
push edi
push str.Urban
push 0x911ff9
push str._s_s__d._s
lea eax, [ebp - 0x31c]
push 0x104
push eax
call fcn.00407c20
mov edi, dword [ebp - 0x324]
add esp, 0x1c
xor eax, eax
mul esi
mov ecx, eax
mov eax, ebx
mul esi
mov ebx, eax
add ecx, edx
mov eax, dword [ebp - 0x320]
cdq
mov esi, eax
mov dword [ebp - 0xd84], ecx
mov ecx, edx
mov dword [ebp - 0xdd4], ebx
mov eax, edi
cdq
push edx
push eax
push ecx
push esi
call fcn.004ffca0
push dword [ebp - 0xd84]
push ebx
push edx
push eax
call fcn.004ffca0
add eax, 0xc
lea ecx, [ebp - 0xd9c]
adc edx, 0
push edx
push eax
push 1
lea eax, [ebp - 0x31c]
push eax
call fcn.00407070
test eax, eax
jne 0x428132
mov ecx, dword [ebp - 0xdc4]
xor edx, edx
call fcn.00417650
mov ecx, dword [ebp - 0xdb8]
xor edx, edx
mov eax, dword [ebp - 0xda0]
mov dword [ebp - 0xdc0], edx
xor ebx, ebx
mov dword [ebp - 0xd80], ebx
test ecx, ecx
jle 0x427ce4
mov esi, dword [ebp - 0xd70]
xor eax, eax
mov edi, dword [ebp - 0xd78]
mov dword [ebp - 0xdbc], eax
mov dword [ebp - 0xd7c], 0
test edi, edi
jle 0x427cc1
mov dword [ebp - 0xdb4], 0
mov eax, dword [ebp - 0xd68]
lea ecx, [ebp - 0xdf8]
mov edx, dword [ebp - 0x328]
inc eax
push eax
mov dword [ebp - 0xd68], eax
call fcn.004275f0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x427e43
mov edi, dword [ebp - 0xdf8]
push dword [esi + edi + 8]
call fcn.0050491e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x427e43
mov ecx, dword [ebp - 0xdf8]
push dword [esi + edi + 8]
add ecx, 0xc
add ecx, esi
push ecx
push ebx
call fcn.005010e0
add esp, 0xc
lea ecx, [ebp - 0x84c]
xor eax, eax
cmp word [esi + edi + 2], 1
setne al
add eax, 3
push eax
push dword [esi + edi + 8]
push ebx
call fcn.00486a70
test al, al
je 0x427e43
lea ecx, [ebp - 0x84c]
call fcn.004862d0
cmp ax, 0x18
je 0x427aff
lea ecx, [ebp - 0x84c]
call fcn.00485a60
lea ecx, [ebp - 0x84c]
mov ebx, eax
call fcn.00486490
mov esi, eax
lea ecx, [ebp - 0x84c]
mov dword [ebp - 0xd6c], esi
call fcn.00486350
xor edi, edi
mov dword [ebp - 0xd74], eax
test esi, esi
jle 0x427aff
mov ecx, esi
xor esi, esi
test eax, eax
jle 0x427afa
nop dword [eax]
push edi
push esi
lea ecx, [ebp - 0x84c]
call fcn.00485c70
movzx edx, al
movzx eax, byte [ebx + edx*4 + 1]
movzx ecx, byte [ebx + edx*4 + 2]
add ecx, eax
movzx eax, byte [ebx + edx*4]
add ecx, eax
mov eax, 0xaaaaaaab
mul ecx
lea ecx, [ebp - 0x84c]
shr edx, 1
push edx
push edi
push esi
call fcn.00486160
mov eax, dword [ebp - 0xd74]
inc esi
cmp esi, eax
jl 0x427ab0
mov ecx, dword [ebp - 0xd6c]
inc edi
cmp edi, ecx
jl 0x427aa7
mov esi, dword [ebp - 0xd70]
xor edi, edi
mov dword [ebp - 0xd70], esi
test esi, esi
jle 0x427c53
mov eax, dword [ebp - 0xdc0]
mov ebx, esi
imul ebx, dword [ebp - 0xdc8]
cdq
mov dword [ebp - 0xda4], eax
mov eax, dword [ebp - 0xdb4]
mov dword [ebp - 0xdd8], edx
cdq
mov dword [ebp - 0xdcc], eax
mov eax, dword [ebp - 0xdbc]
mov dword [ebp - 0xd6c], eax
lea eax, [esi - 1]
mov dword [ebp - 0xdac], edx
mov dword [ebp - 0xd74], eax
mov dword [ebp - 0xd70], esi
nop
lea ecx, [ebp - 0x84c]
call fcn.00486340
mov esi, eax
lea ecx, [ebp - 0x84c]
imul esi, dword [ebp - 0xd74]
push 0
call fcn.004892b0
push dword [ebp - 0xdd8]
add eax, esi
push dword [ebp - 0xda4]
mov dword [ebp - 0xdd0], eax
mov eax, dword [ebp - 0x320]
cdq
push edx
push eax
call fcn.004ffca0
mov esi, eax
mov ecx, edx
mov eax, dword [ebp - 0xd6c]
cdq
add esi, eax
mov eax, dword [ebp - 0x324]
adc ecx, edx
cdq
push edx
push eax
push ecx
push esi
call fcn.004ffca0
add eax, dword [ebp - 0xdcc]
push 0
push dword [ebp - 0xdc8]
adc edx, dword [ebp - 0xdac]
push edx
push eax
call fcn.004ffca0
push 0
lea ecx, [ebp - 0xd8c]
mov dword [ebp - 0xd8c], edx
push ecx
push eax
push dword [ebp - 0xd90]
mov dword [ebp - 0xd88], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x428132
push 0
lea eax, [ebp - 0xd94]
push eax
push ebx
push dword [ebp - 0xdd0]
push dword [ebp - 0xd90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428132
cmp dword [ebp - 0xd94], ebx
jne 0x428132
dec dword [ebp - 0xd74]
inc edi
inc dword [ebp - 0xd6c]
mov esi, dword [ebp - 0xd70]
cmp edi, esi
jl 0x427b60
lea ecx, [ebp - 0x84c]
call fcn.00489160
mov ecx, dword [ebp - 0xda0]
imul ecx, dword [ebp - 0xdb8]
imul eax, dword [ebp - 0xd68], 0x64
mov edi, dword [ebp - 0xd78]
imul ecx, edi
cdq
idiv ecx
xor ecx, ecx
mov edx, eax
call fcn.00417650
cmp byte [0x916e5e], 0
jne 0x427e39
mov ebx, dword [ebp - 0xd7c]
add dword [ebp - 0xdb4], esi
inc ebx
mov dword [ebp - 0xd7c], ebx
cmp ebx, edi
jl 0x4279d0
mov eax, dword [ebp - 0xdbc]
mov ecx, dword [ebp - 0xdb8]
mov ebx, dword [ebp - 0xd80]
inc ebx
add eax, esi
mov dword [ebp - 0xd80], ebx
mov dword [ebp - 0xdbc], eax
cmp ebx, ecx
jl 0x4279b4
mov edx, dword [ebp - 0xdc0]
mov eax, dword [ebp - 0xda0]
inc edx
mov dword [ebp - 0xdc0], edx
cmp edx, eax
jl 0x427990
lea ecx, [ebp - 0xdf8]
call fcn.0042f9b0
mov eax, dword [ebp - 0x320]
cdq
mov esi, eax
mov ecx, edx
mov eax, dword [ebp - 0x324]
cdq
push edx
push eax
push ecx
push esi
call fcn.004ffca0
push dword [ebp - 0xd84]
push dword [ebp - 0xdd4]
push edx
push eax
call fcn.004ffca0
push 0
lea ecx, [ebp - 0xd8c]
mov dword [ebp - 0xd8c], edx
push ecx
push eax
push dword [ebp - 0xd90]
mov dword [ebp - 0xd88], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x428132
push 0
lea eax, [ebp - 0xd94]
push eax
push 0xc
lea eax, [ebp - 0x328]
push eax
push dword [ebp - 0xd90]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428132
cmp dword [ebp - 0xd94], 0xc
jne 0x428132
mov edx, 0x64
xor ecx, ecx
call fcn.00417650
mov ecx, dword [ebp - 0x328]
mov eax, ecx
and al, 3
cmp al, 1
jne 0x427dd3
push 0x6167c8
push dword [ebp - 0xdc4]
lea eax, [ebp - 0x114]
push 0x911ff9
push str._s_s._s
push 0x104
push eax
call fcn.00407c20
mov ecx, dword [ebp - 0x328]
add esp, 0x18
and cl, 3
cmp cl, 2
jne 0x427e08
push 0x6167a4
push 0x12c
push str.Urban
push 0x911ff9
push str._s_s__d._s
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00407c20
add esp, 0x1c
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xd78], eax
test eax, eax
jne 0x427e4d
lea ebx, [eax + 0x25]
jmp 0x428137
mov ebx, 0x400
jmp 0x428137
mov ebx, 0x1c
jmp 0x428137
movd xmm0, dword [ebp - 0x324]
xor edx, edx
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0xd7c], edx
divsd xmm0, qword [0x6181d8]
movsd qword [ebp - 0xddc], xmm0
mov eax, edx
xor ecx, ecx
cdq
mov dword [ebp - 0xd80], ecx
mov dword [ebp - 0xdd0], eax
mov dword [ebp - 0xdd4], edx
nop dword [eax + eax]
movd xmm1, ecx
xor ebx, ebx
cvtdq2pd xmm1, xmm1
mov dword [ebp - 0xd84], ebx
mulsd xmm1, xmm0
xorps xmm0, xmm0
movlpd qword [ebp - 0xdb0], xmm0
movsd xmm0, qword [0x618298]
comisd xmm1, xmm0
jb 0x427edd
subsd xmm1, xmm0
comisd xmm0, xmm1
jbe 0x427edd
mov esi, dword [ebp - 0xdb0]
mov edi, dword [ebp - 0xdac]
add esi, ebx
adc edi, 0x80000000
jmp 0x427ee9
mov edi, dword [ebp - 0xdac]
mov esi, dword [ebp - 0xdb0]
movaps xmm0, xmm1
call fcn.004ffce0
add eax, esi
mov dword [ebp - 0xdac], eax
adc edx, edi
mov dword [ebp - 0xdcc], edx
movd xmm1, ebx
xorps xmm0, xmm0
cvtdq2pd xmm1, xmm1
movlpd qword [ebp - 0xda8], xmm0
mulsd xmm1, qword [ebp - 0xddc]
movsd xmm0, qword [0x618298]
comisd xmm1, xmm0
jb 0x427f4b
subsd xmm1, xmm0
comisd xmm0, xmm1
jbe 0x427f4b
mov esi, dword [ebp - 0xda8]
mov edi, dword [ebp - 0xda4]
add esi, 0
adc edi, 0x80000000
jmp 0x427f57
mov edi, dword [ebp - 0xda4]
mov esi, dword [ebp - 0xda8]
movaps xmm0, xmm1
call fcn.004ffce0
push dword [ebp - 0xdd4]
mov ebx, eax
mov eax, dword [ebp - 0x324]
push dword [ebp - 0xdd0]
add ebx, esi
adc edx, edi
mov dword [ebp - 0xda4], edx
cdq
mov edi, eax
mov esi, edx
mov eax, dword [ebp - 0x320]
cdq
push edx
push eax
call fcn.004ffca0
add eax, dword [ebp - 0xdac]
push esi
adc edx, dword [ebp - 0xdcc]
push edi
push edx
push eax
call fcn.004ffca0
add eax, ebx
mov ebx, dword [ebp - 0xdc8]
push 0
adc edx, dword [ebp - 0xda4]
push ebx
push edx
push eax
call fcn.004ffca0
push 0
lea ecx, [ebp - 0xd8c]
mov dword [ebp - 0xd8c], edx
push ecx
push eax
push dword [ebp - 0xd90]
mov dword [ebp - 0xd88], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42810b
push 0
lea eax, [ebp - 0xd94]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0xd90]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x428015
cmp dword [ebp - 0xd94], eax
je 0x42810b
mov esi, dword [ebp - 0xd78]
lea eax, [ebp - 0xd68]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push esi
call edi
test eax, eax
je 0x4280eb
cmp dword [ebp - 0xd68], ebx
jne 0x4280eb
cmp byte [0x916e5e], 0
jne 0x4280fb
mov ebx, dword [ebp - 0xd84]
inc ebx
mov dword [ebp - 0xd84], ebx
cmp ebx, 0x12c
jl 0x427f01
mov ecx, dword [ebp - 0xd80]
movsd xmm0, qword [ebp - 0xddc]
inc ecx
mov dword [ebp - 0xd80], ecx
cmp ecx, 0x96
jl 0x427e90
mov edx, dword [ebp - 0xd7c]
inc edx
mov dword [ebp - 0xd7c], edx
cmp edx, dword [ebp - 0xda0]
jl 0x427e71
mov eax, dword [ebp - 0x328]
push 0
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0xd68]
push eax
push 0xc
lea eax, [ebp - 0x334]
mov dword [ebp - 0x330], 0x12c
push eax
push esi
mov dword [ebp - 0x32c], 0x96
call edi
test eax, eax
je 0x4280eb
cmp dword [ebp - 0xd68], 0xc
je 0x428121
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x25
call esi
jmp 0x42813d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x400
call esi
jmp 0x42813d
mov esi, dword [ebp - 0xd78]
mov ebx, 0x1a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x42813d
mov ebx, dword [ebp - 0xde0]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x42813d
mov ebx, 0x1a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xdf8]
call fcn.0042f9b0
mov eax, dword [ebp - 0xd90]
test eax, eax
je 0x428155
push eax
call esi
mov dword [ebp - 0xd90], 0
test ebx, ebx
je 0x428170
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x344]
mov dword [ebp - method.CImage.virtual_0], vtable.CImage.0
mov dword [ebp - 0x348], 0
mov dword [ebp - 0x33c], 0
test eax, eax
je 0x4281aa
cmp byte [ebp - 0x338], 0
jne 0x4281aa
push eax
call fcn.00504903
add esp, 4
mov dword [ebp - 0x344], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84c]
mov dword [ebp - method.CxImage.virtual_0], vtable.CxImage.0
call fcn.00489220
lea ecx, [ebp - 0x84c]
call fcn.00489160
mov eax, dword [ebp - 0xd90]
test eax, eax
je 0x4281e5
push eax
call esi
lea ecx, [ebp - 0xdf8]
mov dword [ebp - 0xd90], 0
call fcn.0042f830
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ff23c
mov esp, ebp
pop ebp
ret