Function at 0x410370
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c6a5
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4a5018]
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 dword [ebp - 0x1c], ecx
push ecx
mov edx, str.full.data
lea ecx, [ebp - 0x20]
call fcn.00419930
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 4
push dword [ebp - 0x20]
call edi
mov edx, dword [ebp - 0x20]
neg eax
sbb esi, esi
or ebx, 0xffffffff
inc esi
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4103dc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x410ba1
mov esi, dword [ebp + 8]
push dword [esi]
call edi
test eax, eax
je 0x410ba1
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
push eax
push esi
call fcn.00412670
mov edx, dword [ebp - 0x50]
test eax, eax
jne 0x410427
xor esi, esi
jmp 0x410b67
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x410bc4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 1
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x410bc4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push str..zip
mov edx, esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0040eab0
push ecx
mov byte [ebp - 4], 3
push dword [ebp - 0x2c]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.00429580
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [eax]
mov esi, dword [ebp - 0x2c]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4104e1
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4104d5
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4104d5
call fcn.00406910
mov dword [ebp - 0x18], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4104cd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp - 0x2c], eax
jmp 0x4104e1
push dword [edx - 0xc]
lea ecx, [ebp - 0x2c]
push edx
call fcn.004069d0
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4104ff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00410c10
test eax, eax
je 0x410b8c
mov eax, dword [ebp - 0x38]
cmp dword [eax - 0xc], 0
je 0x410b8c
mov eax, dword [ebp - 0x34]
cmp dword [eax - 0xc], 0
je 0x410b8c
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x410bc4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, 0x40
mov byte [ebp - 4], 5
call fcn.00455f10
mov esi, esp
test esi, esi
je 0x410587
push 0
push 0
push 0x3a
push esi
push 0xffffffffffffffff
push str.XunduBoundary0xKhTSLbOuNdCrY
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x410589
xor esi, esi
push esi
lea eax, [ebp - 0x20]
push str._r_n___s___r_n
push eax
call fcn.004129b0
mov edi, dword [ebp - 0x34]
add esp, 0xc
test edi, edi
je 0x4105ee
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4105a7
sub ecx, edx
sar ecx, 1
inc ecx
cmp ecx, 0x3fffffff
jg 0x4105ee
lea ebx, [ecx + ecx]
mov eax, ebx
call fcn.00455920
mov esi, esp
test esi, esi
je 0x4105ee
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor ecx, ecx
test eax, eax
cmove esi, ecx
jmp 0x4105f0
xor esi, esi
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x410bc4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.004128d0
test al, al
jne 0x41063b
test esi, esi
jne 0x410623
xor ecx, ecx
jmp 0x410631
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410628
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x30]
call fcn.00408b50
mov byte [ebp - 4], 7
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x4c]
sub edx, dword [ebp - 0x50]
mov eax, dword [esi - 0xc]
add eax, dword [edi - 0xc]
add eax, edx
mov dword [ebp - 0x1c], edx
push eax
mov dword [ebp - 0x28], eax
call fcn.0045540a
add esp, 4
mov dword [ebp - 0x24], eax
push dword [edi - 0xc]
push edi
push eax
call fcn.00456e40
mov ebx, dword [edi - 0xc]
add esp, 0xc
mov eax, dword [ebp - 0x24]
add eax, ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x50]
push eax
call fcn.00456e40
mov eax, dword [ebp - 0x1c]
add esp, 0xc
add eax, ebx
add eax, dword [ebp - 0x24]
push dword [esi - 0xc]
push esi
push eax
call fcn.00456e40
add esp, 0xc
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x410bce
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 8
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x410bd8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x492c04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.004067d0
test al, al
jne 0x4106fa
push 4
push 0x492c04
lea ecx, [ebp - 0x14]
call fcn.004069d0
mov byte [ebp - 4], 0xa
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x410be2
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xb
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x410bec
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x58]
call fcn.004029a0
add esp, 0xc
or ebx, 0xffffffff
mov byte [ebp - 4], 0xe
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410772
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
mov eax, ebx
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410790
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4107ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.XunduBoundary0xKhTSLbOuNdCrY
lea eax, [ebp - 0x1c]
push str.multipart_form_data__boundary_s
push eax
call fcn.00407700
add esp, 0xc
call fcn.00402880
mov ecx, eax
test ecx, ecx
je 0x410bf6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.Content_Type
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x11
call fcn.004067d0
test al, al
jne 0x410802
push 0xc
push str.Content_Type
lea ecx, [ebp - 0x14]
call fcn.004069d0
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x1c]
mov esi, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [esi + 0x28]
call fcn.00417ba0
mov byte [ebp - 4], 0x10
mov eax, ebx
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410837
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x34]
add esi, 0x30
mov edx, ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x28]
mov eax, dword [esi]
sub edx, eax
cmp ecx, edx
jae 0x410851
add eax, ecx
jmp 0x41088a
jbe 0x41088d
mov eax, dword [esi + 8]
sub eax, dword [esi]
cmp ecx, eax
jbe 0x41086a
push ecx
push ecx
mov ecx, esi
call fcn.00412b60
mov ecx, dword [ebp - 0x28]
jmp 0x41088d
mov esi, ecx
sub esi, edx
push esi
push 0
push dword [ebp - 0x18]
call fcn.004573c0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x28]
add eax, esi
mov esi, dword [ebp - 0x58]
add esi, 0x30
mov dword [esi + 4], eax
push ecx
push dword [ebp - 0x24]
push dword [esi]
call fcn.00456e40
add esp, 0xc
push dword [ebp - 0x24]
call fcn.00455405
xor esi, esi
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x24], esi
add esp, 4
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x410969
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
lea edx, [ebp - 0x40]
mov byte [ebp - 4], 0x14
mov ecx, eax
call fcn.0042a950
test eax, eax
je 0x41093e
mov edx, dword [ebp - 0x40]
test edx, edx
je 0x41093e
push 0xffffffffffffffff
push ecx
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x64]
push esi
push esi
push eax
mov dword [ebp - 0x60], esi
call fcn.0042ab50
mov byte [ebp - 4], 0x13
add esp, 0x14
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
test esi, esi
je 0x41092d
mov ecx, ebx
lock xadd dword [esi + 4], ecx
jne 0x41092d
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x41092d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], esi
jmp 0x410970
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x410967
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x410967
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x3c]
mov eax, ebx
lock xadd dword [ecx + 8], eax
jne 0x410967
mov eax, dword [ecx]
call dword [eax + 4]
xor ecx, ecx
mov dword [ebp - 0x28], 0
sub ecx, esi
push ecx
push esi
lea ecx, [ebp - 0x44]
call fcn.004051c0
mov byte [ebp - 4], 0x15
mov esi, dword [ebp - 0x44]
cmp dword [esi - 0xc], 0
je 0x410a26
mov edx, esi
lea ecx, [ebp - 0x3c]
call fcn.004222a0
mov byte [ebp - 4], 0x16
mov edx, dword [eax]
lea eax, [edx - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x18], ecx
je 0x410a08
cmp dword [ecx + 0xc], 0
lea edi, [ecx + 0xc]
mov dword [ebp - 0x68], edi
mov edi, dword [ebp - 0x30]
jl 0x4109fd
mov eax, dword [edx - 0x10]
cmp eax, dword [ecx]
jne 0x4109fa
mov ecx, dword [ebp - 0x18]
call fcn.00406910
mov dword [ebp - 0x18], eax
mov ecx, ebx
mov eax, dword [ebp - 0x68]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4109ed
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [eax]
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ecx], eax
jmp 0x410a08
mov eax, dword [ebp + 0xc]
push dword [edx - 0xc]
mov ecx, eax
push edx
call fcn.004069d0
mov byte [ebp - 4], 0x15
mov eax, ebx
mov edx, dword [ebp - 0x3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410a26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x28], 0
je 0x410a37
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0x13
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x410a52
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x410a8a
mov edx, dword [ebp - 0x14]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x410a80
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410c00
push edx
push ecx
call fcn.00455202
add esp, 8
mov esi, dword [ebp - 0x54]
test esi, esi
je 0x410ab0
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x410ab0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x410ab0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410ace
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x410ae9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410b07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
mov byte [ebp - 4], 2
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410b2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x410b48
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x410b64
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x50]
test edx, edx
je 0x410b9d
mov ecx, dword [ebp - 0x48]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x410b93
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410c00
jmp 0x410b93
xor esi, esi
jmp 0x410b0c
push ecx
push edx
call fcn.00455202
add esp, 8
mov eax, esi
jmp 0x410ba3
xor eax, eax
lea esp, [ebp - 0x80]
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.00454d47
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
push 0x80004005
call fcn.00402980
call fcn.00459a0a
int3