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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59eab1
mov eax, dword fs:[0]
push eax
sub esp, 0xdec
mov eax, dword [0x62acc0]
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.00500bb0
add esp, 0xc
mov dword [ebp - 0xd68], 0
lea ecx, [ebp - 0xdf8]
call fcn.0042f5c0
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.00407270
push 0x616674
push ebx
push 0x910df9
push str._s_s._s
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push 0x104
push eax
call fcn.00407c70
add esp, 0x18
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0xdf8]
push 0
push 0
push 0
push eax
call fcn.0042f640
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xde0], eax
test eax, eax
je 0x42747b
mov ebx, 0x19
jmp 0x427e4d
push 0xffff
xor edx, edx
lea ecx, [ebp - 0xdf8]
call fcn.00427300
add esp, 4
cmp eax, 0xffffffff
jne 0x42749d
lea ebx, [eax + 0x28]
jmp 0x427e4d
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.00427300
mov ecx, eax
add esp, 4
cmp ecx, 0xffffffff
jne 0x4274e0
lea ebx, [eax + 0x13]
jmp 0x427e4d
movzx esi, word [ebx + ecx + 2]
mov edi, dword [ebx + ecx + 8]
add ebx, 0xc
add ebx, ecx
lea ecx, [ebp - 0xd64]
call fcn.00407270
push 0xffffffffffffffff
lea ecx, [ebp - 0xd64]
mov byte [ebp - 4], 3
call fcn.00485bf0
xor eax, eax
lea ecx, [ebp - 0xd64]
cmp esi, 1
setne al
add eax, 3
push eax
push edi
push ebx
call fcn.00486110
lea ecx, [ebp - 0xd64]
test al, al
jne 0x427540
mov byte [ebp - 4], 2
call fcn.00407380
mov ebx, 0x18
jmp 0x427e47
call fcn.00485b30
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd64]
mov dword [ebp - 0xd70], esi
call fcn.00407380
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 0x4275e5
push 0x6156d4
push dword [ebp - 0xdc4]
lea eax, [ebp - 0x31c]
push 0x910df9
push str._s_s._s
push 0x104
push eax
call fcn.00407c70
mov edi, dword [ebp - 0x324]
add esp, 0x18
mov ecx, dword [ebp - 0x328]
and cl, 3
cmp cl, 2
jne 0x42761c
push 0x6156d4
push edi
push str.Urban
push 0x910df9
push str._s_s__d._s
lea eax, [ebp - 0x31c]
push 0x104
push eax
call fcn.00407c70
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.004ff340
push dword [ebp - 0xd84]
push ebx
push edx
push eax
call fcn.004ff340
add eax, 0xc
lea ecx, [ebp - 0xd9c]
adc edx, 0
push edx
push eax
push 1
lea eax, [ebp - 0x31c]
push eax
call fcn.004070c0
test eax, eax
jne 0x427e42
mov ecx, dword [ebp - 0xdc4]
xor edx, edx
call fcn.00417380
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 0x4279f4
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 0x4279d1
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.00427300
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x427b53
mov edi, dword [ebp - 0xdf8]
push dword [esi + edi + 8]
call fcn.00503e6e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x427b53
mov ecx, dword [ebp - 0xdf8]
push dword [esi + edi + 8]
add ecx, 0xc
add ecx, esi
push ecx
push ebx
call fcn.00500630
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.00486110
test al, al
je 0x427b53
lea ecx, [ebp - 0x84c]
call fcn.00485970
cmp ax, 0x18
je 0x42780f
lea ecx, [ebp - 0x84c]
call fcn.00485100
lea ecx, [ebp - 0x84c]
mov ebx, eax
call fcn.00485b30
mov esi, eax
lea ecx, [ebp - 0x84c]
mov dword [ebp - 0xd6c], esi
call fcn.004859f0
xor edi, edi
mov dword [ebp - 0xd74], eax
test esi, esi
jle 0x42780f
mov ecx, esi
xor esi, esi
test eax, eax
jle 0x42780a
nop dword [eax]
push edi
push esi
lea ecx, [ebp - 0x84c]
call fcn.00485310
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.00485800
mov eax, dword [ebp - 0xd74]
inc esi
cmp esi, eax
jl 0x4277c0
mov ecx, dword [ebp - 0xd6c]
inc edi
cmp edi, ecx
jl 0x4277b7
mov esi, dword [ebp - 0xd70]
xor edi, edi
mov dword [ebp - 0xd70], esi
test esi, esi
jle 0x427963
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.004859e0
mov esi, eax
lea ecx, [ebp - 0x84c]
imul esi, dword [ebp - 0xd74]
push 0
call fcn.00488950
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.004ff340
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.004ff340
add eax, dword [ebp - 0xdcc]
push 0
push dword [ebp - 0xdc8]
adc edx, dword [ebp - 0xdac]
push edx
push eax
call fcn.004ff340
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 0x427e42
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 0x427e42
cmp dword [ebp - 0xd94], ebx
jne 0x427e42
dec dword [ebp - 0xd74]
inc edi
inc dword [ebp - 0xd6c]
mov esi, dword [ebp - 0xd70]
cmp edi, esi
jl 0x427870
lea ecx, [ebp - 0x84c]
call fcn.00488800
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.00417380
cmp byte [0x915b5e], 0
jne 0x427b49
mov ebx, dword [ebp - 0xd7c]
add dword [ebp - 0xdb4], esi
inc ebx
mov dword [ebp - 0xd7c], ebx
cmp ebx, edi
jl 0x4276e0
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 0x4276c4
mov edx, dword [ebp - 0xdc0]
mov eax, dword [ebp - 0xda0]
inc edx
mov dword [ebp - 0xdc0], edx
cmp edx, eax
jl 0x4276a0
lea ecx, [ebp - 0xdf8]
call fcn.0042f770
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.004ff340
push dword [ebp - 0xd84]
push dword [ebp - 0xdd4]
push edx
push eax
call fcn.004ff340
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 0x427e42
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 0x427e42
cmp dword [ebp - 0xd94], 0xc
jne 0x427e42
mov edx, 0x64
xor ecx, ecx
call fcn.00417380
mov ecx, dword [ebp - 0x328]
mov eax, ecx
and al, 3
cmp al, 1
jne 0x427ae3
push 0x6156f8
push dword [ebp - 0xdc4]
lea eax, [ebp - 0x114]
push 0x910df9
push str._s_s._s
push 0x104
push eax
call fcn.00407c70
mov ecx, dword [ebp - 0x328]
add esp, 0x18
and cl, 3
cmp cl, 2
jne 0x427b18
push 0x6156d4
push 0x12c
push str.Urban
push 0x910df9
push str._s_s__d._s
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.00407c70
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 0x427b5d
lea ebx, [eax + 0x25]
jmp 0x427e47
mov ebx, 0x400
jmp 0x427e47
mov ebx, 0x1c
jmp 0x427e47
movd xmm0, dword [ebp - 0x324]
xor edx, edx
cvtdq2pd xmm0, xmm0
mov dword [ebp - 0xd7c], edx
divsd xmm0, qword [0x617108]
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 [0x6171c8]
comisd xmm1, xmm0
jb 0x427bed
subsd xmm1, xmm0
comisd xmm0, xmm1
jbe 0x427bed
mov esi, dword [ebp - 0xdb0]
mov edi, dword [ebp - 0xdac]
add esi, ebx
adc edi, 0x80000000
jmp 0x427bf9
mov edi, dword [ebp - 0xdac]
mov esi, dword [ebp - 0xdb0]
movaps xmm0, xmm1
call fcn.004ff380
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 [0x6171c8]
comisd xmm1, xmm0
jb 0x427c5b
subsd xmm1, xmm0
comisd xmm0, xmm1
jbe 0x427c5b
mov esi, dword [ebp - 0xda8]
mov edi, dword [ebp - 0xda4]
add esi, 0
adc edi, 0x80000000
jmp 0x427c67
mov edi, dword [ebp - 0xda4]
mov esi, dword [ebp - 0xda8]
movaps xmm0, xmm1
call fcn.004ff380
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.004ff340
add eax, dword [ebp - 0xdac]
push esi
adc edx, dword [ebp - 0xdcc]
push edi
push edx
push eax
call fcn.004ff340
add eax, ebx
mov ebx, dword [ebp - 0xdc8]
push 0
adc edx, dword [ebp - 0xda4]
push ebx
push edx
push eax
call fcn.004ff340
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 0x427e1b
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 0x427d25
cmp dword [ebp - 0xd94], eax
je 0x427e1b
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 0x427dfb
cmp dword [ebp - 0xd68], ebx
jne 0x427dfb
cmp byte [0x915b5e], 0
jne 0x427e0b
mov ebx, dword [ebp - 0xd84]
inc ebx
mov dword [ebp - 0xd84], ebx
cmp ebx, 0x12c
jl 0x427c11
mov ecx, dword [ebp - 0xd80]
movsd xmm0, qword [ebp - 0xddc]
inc ecx
mov dword [ebp - 0xd80], ecx
cmp ecx, 0x96
jl 0x427ba0
mov edx, dword [ebp - 0xd7c]
inc edx
mov dword [ebp - 0xd7c], edx
cmp edx, dword [ebp - 0xda0]
jl 0x427b81
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 0x427dfb
cmp dword [ebp - 0xd68], 0xc
je 0x427e31
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x25
call esi
jmp 0x427e4d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x400
call esi
jmp 0x427e4d
mov esi, dword [ebp - 0xd78]
mov ebx, 0x1a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x427e4d
mov ebx, dword [ebp - 0xde0]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x427e4d
mov ebx, 0x1a
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xdf8]
call fcn.0042f770
mov eax, dword [ebp - 0xd90]
test eax, eax
je 0x427e65
push eax
call esi
mov dword [ebp - 0xd90], 0
test ebx, ebx
je 0x427e80
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 0x427eba
cmp byte [ebp - 0x338], 0
jne 0x427eba
push eax
call fcn.00503e53
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.004888c0
lea ecx, [ebp - 0x84c]
call fcn.00488800
mov eax, dword [ebp - 0xd90]
test eax, eax
je 0x427ef5
push eax
call esi
lea ecx, [ebp - 0xdf8]
mov dword [ebp - 0xd90], 0
call fcn.0042f5f0
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.004fe8dc
mov esp, ebp
pop ebp
ret