Function at 0x402d30
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfd10
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x508164]
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 eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x240], eax
mov dword [eax], 0
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x402d8a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi + 0x4c], 0
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 0x228]
xor eax, eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], eax
mov eax, dword [edi + 0xc]
push edx
push 3
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
jne 0x402e00
push 8
call fcn.0048d929
xor ecx, ecx
mov dword [ebp - 0x238], eax
add esp, 4
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], 3
mov word [eax], cx
mov cx, word [ebp - 0x228]
test cx, cx
jne 0x402dec
push str._Content_
jmp 0x402e24
cmp cx, 8
je 0x402e1e
push eax
mov esi, 0x80004005
call fcn.0048d8c3
add esp, 4
cmp word [ebp - 0x228], 0
je 0x40338c
lea ecx, [ebp - 0x228]
call fcn.00452810
jmp 0x40338c
push dword [ebp - 0x220]
lea ecx, [ebp - 0x238]
call fcn.004522f0
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [edi + 0x1c]
call fcn.00452360
push dword [ebp - 0x238]
call fcn.0048d8c3
add esp, 4
cmp word [ebp - 0x228], 0
je 0x402e61
lea ecx, [ebp - 0x228]
call fcn.00452810
xor eax, eax
cmp dword [ebp + 0x14], eax
jne 0x40338e
mov dword [ebp - 0x228], eax
lea edx, [ebp - 0x228]
mov dword [ebp - 0x220], eax
mov eax, dword [edi + 0xc]
push edx
push 9
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
mov ax, word [ebp - 0x228]
test esi, esi
jne 0x402eb4
test ax, ax
jne 0x402ea9
mov dword [edi + 0x40], 0
mov byte [edi + 0x45], al
jmp 0x402ee5
cmp ax, 0x13
je 0x402ecd
mov esi, 0x80004005
test ax, ax
je 0x40338c
lea ecx, [ebp - 0x228]
call fcn.00452810
jmp 0x40338c
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x228]
mov dword [edi + 0x40], eax
mov byte [edi + 0x45], 1
call fcn.00452810
mov ecx, dword [edi + 0xc]
lea edx, [ebp - 0x228]
xor eax, eax
push edx
push 6
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], eax
mov eax, dword [ecx]
push ebx
push ecx
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jne 0x402e00
mov ax, word [ebp - 0x228]
cmp ax, 0xb
jne 0x402f37
cmp word [ebp - 0x220], si
lea ecx, [ebp - 0x228]
setne al
mov byte [edi + 0x44], al
call fcn.00452810
jmp 0x402f43
test ax, ax
jne 0x40337c
mov byte [edi + 0x44], al
xor eax, eax
lea edx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], eax
mov eax, dword [edi + 0xc]
push edx
push 0xc
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov cx, word [ebp - 0x228]
mov esi, eax
test esi, esi
jne 0x402f86
movzx eax, cx
mov byte [edi + 0x46], 0
test eax, eax
je 0x402fb5
cmp eax, 0x40
je 0x402f9f
mov esi, 0x80004005
test cx, cx
je 0x40338c
lea ecx, [ebp - 0x228]
call fcn.00452810
jmp 0x40338c
mov eax, dword [ebp - 0x220]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x21c]
mov dword [edi + 0x3c], eax
mov byte [edi + 0x46], 1
test cx, cx
je 0x402fc5
lea ecx, [ebp - 0x228]
call fcn.00452810
xor eax, eax
lea edx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], eax
mov eax, dword [edi + 0xc]
push edx
push 7
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
test esi, esi
jne 0x402e00
mov cx, word [ebp - 0x228]
movzx eax, cx
cmp eax, 0x15
ja case.0x40300a.1
movzx eax, byte [eax + 0x4033d0]
jmp dword [eax*4 + 0x4033c8]
test cx, cx
je 0x403021
lea ecx, [ebp - 0x228]
call fcn.00452810
lea ecx, [ebp - 0x238]
call fcn.00452200
mov esi, dword [edi + 0x68]
test esi, esi
je 0x403072
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004a5f00
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [edi + 0x6c]
push 0x104
push eax
push ebx
call esi
add esp, 0x10
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x238]
push eax
call fcn.004522f0
jmp 0x4030a1
lea eax, [edi + 0x1c]
push eax
lea edx, [edi + 0x10]
lea ecx, [ebp - 0x224]
call fcn.004520d0
add esp, 4
lea ecx, [ebp - 0x238]
push eax
call fcn.00452360
push dword [ebp - 0x224]
call fcn.0048d8c3
add esp, 4
lea ecx, [ebp - 0x238]
call fcn.00452510
test eax, eax
js 0x4030d8
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x238]
call fcn.004029b0
mov ecx, dword [eax]
call fcn.00453550
push dword [ebp - 0x224]
call fcn.0048d8c3
add esp, 4
lea eax, [ebp - 0x238]
push eax
lea ecx, [edi + 0x28]
call fcn.00452360
cmp byte [edi + 0x44], 0
je 0x40310a
mov ebx, dword [ebp - 0x238]
mov ecx, ebx
call fcn.00453550
push ebx
xor esi, esi
call fcn.0048d8c3
add esp, 4
jmp 0x40338c
lea ecx, [ebp - 0x2d0]
call fcn.00402c30
mov ebx, dword [ebp - 0x238]
lea ecx, [ebp - 0x2d0]
push ebx
call fcn.00452c80
test al, al
je 0x403291
mov ecx, ebx
call fcn.004538a0
test al, al
jne 0x403291
push 0
push ebx
lea eax, [ebp - 0x24c]
push str._s__dold
push eax
call fcn.00402bb0
add esp, 0x10
lea ecx, [ebp - 0x298]
mov esi, 1
mov dword [ebp - 0x22c], esi
call fcn.00402c30
push ebx
lea ecx, [ebp - 0x298]
call fcn.00452c80
test al, al
jne 0x403258
lea edi, [esi + 1]
push esi
push ebx
lea eax, [ebp - 0x260]
push str._s__dold
push eax
call fcn.00402bb0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x250], eax
add esp, 0x10
cmp eax, ecx
je 0x403229
mov esi, dword [eax + 4]
cmp esi, dword [ebp - 0x244]
jbe 0x4031f6
xor ecx, ecx
lea eax, [esi + 1]
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048d929
add esp, 4
mov dword [ebp - 0x23c], eax
push dword [ebp - 0x24c]
call fcn.0048d8c3
mov ecx, dword [ebp - 0x23c]
add esp, 4
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x244], esi
jmp 0x403204
mov eax, dword [ebp - 0x24c]
mov ecx, eax
mov dword [ebp - 0x23c], eax
lea eax, [esi*2 + 2]
mov dword [ebp - 0x248], esi
push eax
mov eax, dword [ebp - 0x250]
push dword [eax]
push ecx
call fcn.004a5400
mov esi, dword [ebp - 0x22c]
add esp, 0xc
push dword [ebp - 0x260]
inc esi
mov dword [ebp - 0x22c], esi
call fcn.0048d8c3
add esp, 4
lea ecx, [ebp - 0x298]
push ebx
call fcn.00452c80
test al, al
je 0x403182
mov edi, dword [ebp - 0x254]
push dword [ebp - 0x270]
call fcn.0048d8c3
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 4
push 1
push dword [ebp - 0x24c]
push ebx
call esi
push 4
push 0
push dword [ebp - 0x24c]
call esi
push dword [ebp - 0x24c]
call fcn.0048d8c3
add esp, 4
push 0x18
call fcn.0048d8f9
mov esi, eax
add esp, 4
mov dword [esi + 4], 0
mov dword [esi], vtable.COutFileStream.0
mov dword [esi + 8], 0xffffffff
mov dword [edi + 0x48], esi
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov eax, dword [edi + 0x48]
mov dword [ebp - 0x22c], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov eax, dword [eax + 8]
cmp eax, 0xffffffff
je 0x4032f1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x403318
mov eax, dword [ebp - 0x22c]
mov dword [eax + 8], 0xffffffff
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x22c]
mov dword [ecx + 8], eax
cmp eax, 0xffffffff
jne 0x403343
mov dword [ebp - 4], 0
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 0x2a8]
call fcn.0048d8c3
add esp, 4
mov esi, 0x80004004
push ebx
call fcn.0048d8c3
add esp, 4
jmp 0x40338c
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x403356
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x240]
mov dword [edi + 0x4c], esi
mov dword [eax], esi
push dword [ebp - 0x2a8]
call fcn.0048d8c3
add esp, 4
xor esi, esi
push ebx
call fcn.0048d8c3
add esp, 4
jmp 0x40338c
lea ecx, [ebp - 0x228]
call fcn.00452810
mov esi, 0x80004005
mov eax, esi
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.0048d8b2
mov esp, ebp
pop ebp
ret 0x10
push 0x505a48
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0x24e9f
push eax
call fcn.004a538b
nop
adc dword [eax], esi
inc eax
add byte [ebx + esi + 0x1000040], ch
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [ecx], eax
add dword [eax], eax
add byte [eax], al
add dword [eax], eax
int3