Function at 0x40a770
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x542dfd
mov eax, dword fs:[0]
push eax
mov eax, 0x31894
call fcn.005260d0
mov eax, dword [0x5a574c]
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 - 0x3189c], ecx
lea ecx, [ebp - 0x31884]
call fcn.004144c0
mov dword [ebp - 4], 0
call fcn.00432f53
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a7d4
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x31888], eax
mov byte [ebp - 4], 1
call fcn.00432f53
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a804
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x3188c], eax
mov byte [ebp - 4], 2
call fcn.00432f53
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a834
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x31890], eax
mov byte [ebp - 4], 3
call fcn.00432f53
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a864
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x31894], ebx
mov byte [ebp - 4], 4
call fcn.00432f53
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40a894
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x31898], edi
mov byte [ebp - 4], 5
xor eax, eax
lea esp, [esp]
mov cl, byte [eax + 0x5a6c50]
mov byte [ebp + eax - 0x610], cl
inc eax
test cl, cl
jne 0x40a8b0
push 0x554a1c
push 0x5552b4
call fcn.0052656a
mov esi, eax
add esp, 8
test esi, esi
je 0x40adb7
mov ecx, dword [ebp - 0x3189c]
push str.completed_update__FTP_
push ecx
call fcn.00409320
push esi
lea edx, [ebp - 0xa10]
push 0x400
push edx
call fcn.0052634e
push esi
call fcn.005262da
add esp, 0x18
cmp byte [ebp - 0xa10], 0x3c
jne 0x40aa15
lea eax, [ebp - 0xa0f]
push 0x5553a0
push eax
call fcn.00527b6b
add esp, 8
test eax, eax
jne 0x40a933
xor ecx, ecx
jmp 0x40a941
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40a938
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x31888]
call fcn.00401520
push 0x5553a0
push 0
call fcn.00527b6b
add esp, 8
test eax, eax
jne 0x40a965
xor ecx, ecx
jmp 0x40a979
mov ecx, eax
lea esi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40a970
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x3188c]
call fcn.00401520
push 0x5553a0
push 0
call fcn.00527b6b
add esp, 8
test eax, eax
jne 0x40a99d
xor ecx, ecx
jmp 0x40a9ab
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40a9a2
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x31890]
call fcn.00401520
push 0x5553a0
push 0
call fcn.00527b6b
add esp, 8
test eax, eax
jne 0x40a9cf
xor ecx, ecx
jmp 0x40a9dd
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40a9d4
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x31894]
call fcn.00401520
push 0x5553a0
push 0
call fcn.00527b6b
add esp, 8
test eax, eax
jne 0x40aa03
xor ecx, ecx
push ecx
push eax
jmp 0x40aa64
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40aa08
sub ecx, esi
push ecx
push eax
jmp 0x40aa64
push 7
push str.Unknown
lea ecx, [ebp - 0x31888]
call fcn.00401520
push 7
push str.Unknown
lea ecx, [ebp - 0x3188c]
call fcn.00401520
push 7
push str.Unknown
lea ecx, [ebp - 0x31890]
call fcn.00401520
push 7
push str.Unknown
lea ecx, [ebp - 0x31894]
call fcn.00401520
push 7
push str.Unknown
lea ecx, [ebp - 0x31898]
call fcn.00401520
push 0x555394
push 0x5552c4
call fcn.0052656a
mov esi, eax
xor ebx, ebx
add esp, 8
cmp esi, ebx
jne 0x40ab2d
mov eax, dword [ebp - 0x31898]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aab3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x31894]
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aad9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x31890]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aaff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x3188c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ab25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
jmp 0x40ae47
push 2
push ebx
push esi
call fcn.00527aef
push esi
call fcn.00527a00
push ebx
push ebx
push esi
mov edi, eax
call fcn.00527aef
push edi
call fcn.005277d8
push esi
push 1
push edi
push eax
mov dword [ebp - 0x318a0], eax
call fcn.005277bb
push esi
call fcn.005262da
add esp, 0x34
xor eax, eax
jmp 0x40ab70
mov cl, byte [eax + 0x5a6c50]
mov byte [ebp + eax - 0x610], cl
inc eax
test cl, cl
jne 0x40ab70
xor eax, eax
jmp 0x40ab90
mov cl, byte [ebp + eax - 0x610]
mov byte [ebp + eax - 0x110], cl
inc eax
test cl, cl
jne 0x40ab90
lea eax, [ebp - 0x110]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40abb0
mov ecx, dword [str.exception.log]
mov edx, dword [0x555388]
mov dword [eax], ecx
mov ecx, dword [0x55538c]
mov dword [eax + 4], edx
mov dx, word [0x555390]
mov dword [eax + 8], ecx
mov cl, byte [0x555392]
mov word [eax + 0xc], dx
mov byte [eax + 0xe], cl
xor eax, eax
jmp 0x40abf0
mov cl, byte [ebp + eax - 0x610]
mov byte [ebp + eax - 0x210], cl
inc eax
test cl, cl
jne 0x40abf0
lea eax, [ebp - 0x210]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40ac10
mov edx, dword [str.exception.dmp]
mov ecx, dword [0x555378]
mov dword [eax], edx
mov edx, dword [0x55537c]
mov dword [eax + 4], ecx
mov cx, word [0x555380]
mov dword [eax + 8], edx
mov dl, byte [0x555382]
mov word [eax + 0xc], cx
mov byte [eax + 0xe], dl
mov dword [ebp - 0xb18], ebx
mov dword [ebp - 0xb14], ebx
xor eax, eax
jmp 0x40ac60
mov cl, byte [ebp + eax - 0x110]
mov byte [ebp + eax - 0xb10], cl
inc eax
test cl, cl
jne 0x40ac60
lea eax, [ebp - 0xb10]
push eax
lea ecx, [ebp - 0xb18]
call fcn.00406820
lea ecx, [ebp - 0x31884]
mov byte [ebp - 4], 6
call fcn.00414680
mov ecx, dword [ebp - 0x31888]
push 0
push ecx
push 0x554108
lea ecx, [ebp - 0x31884]
call fcn.00414770
mov edx, dword [ebp - 0x3188c]
push 0
push edx
push str.version
lea ecx, [ebp - 0x31884]
call fcn.00414770
mov eax, dword [ebp - 0x31890]
push 0
push eax
push str.packetversion
lea ecx, [ebp - 0x31884]
call fcn.00414770
mov ebx, dword [ebp - 0x31894]
push 0
push ebx
push str.BugsPointLine
lea ecx, [ebp - 0x31884]
call fcn.00414770
mov edi, dword [ebp - 0x31898]
push 0
push edi
push str.ModuleName
lea ecx, [ebp - 0x31884]
call fcn.00414770
push 1
lea ecx, [ebp - 0x110]
push ecx
push str.file
lea ecx, [ebp - 0x31884]
call fcn.00414770
push 1
lea edx, [ebp - 0x210]
push edx
push str.file2
lea ecx, [ebp - 0x31884]
call fcn.00414770
push str.MERONG_0.9__p_
push 3
push str.http:__py.4th.in_report_StackLogDmp.php
lea ecx, [ebp - 0x31884]
call fcn.00414530
test eax, eax
je 0x40ad69
lea ecx, [ebp - 0x31884]
call fcn.00412f80
mov eax, dword [ebp - 0x318a0]
push eax
call fcn.00527537
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 4
lea ecx, [ebp - 0x110]
push ecx
call esi
lea edx, [ebp - 0x210]
push edx
call esi
mov eax, dword [ebp - 0x3189c]
push str.completed_bug_report_transfer
push eax
call fcn.00409320
mov eax, dword [ebp - 0xb18]
add esp, 8
test eax, eax
je 0x40adb7
push eax
call fcn.005262da
add esp, 4
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40add7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40adf7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x31890]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x3188c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae43
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x31888]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ae69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x31884]
mov dword [ebp - 4], 0xffffffff
call fcn.004144f0
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.00525222
mov esp, ebp
pop ebp
ret