Function at 0x407590
Capabilities:
Delete file

Disassembly:
mov eax, 0x3f00
call fcn.00420520
mov eax, dword [0x443d3c]
xor eax, esp
mov dword [esp + 0x3efc], eax
push ebx
push esi
mov esi, dword [esp + 0x3f0c]
push edi
xor ebx, ebx
push 0x3a97
lea eax, [esp + 0x475]
push ebx
push eax
mov edi, ecx
mov byte [esp + 0x47c], bl
call fcn.00420550
push 0x1ff
lea ecx, [esp + 0x281]
push ebx
push ecx
mov byte [esp + 0x288], bl
call fcn.00420550
xor eax, eax
push 0x1ff
lea edx, [esp + 0x8d]
push ebx
push edx
mov byte [esp + 0x58], bl
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov word [esp + 0x69], ax
mov byte [esp + 0x6b], al
mov byte [esp + 0x30], bl
mov dword [esp + 0x31], eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
mov byte [esp + 0x44], bl
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov word [esp + 0x55], ax
mov byte [esp + 0x57], al
mov byte [esp + 0x80], bl
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov dword [esp + 0x8d], eax
mov word [esp + 0x91], ax
mov byte [esp + 0x93], al
mov byte [esp + 0x6c], bl
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov word [esp + 0x7d], ax
mov byte [esp + 0x7f], al
mov byte [esp + 0x94], bl
call fcn.00420550
lea eax, [esp + 0x30]
push eax
push 0x4396cc
push esi
call fcn.004044e0
add esp, 0x30
test al, al
jne 0x4076d6
push esi
push str.Failed_in_1_:__s
call fcn.00404f70
add esp, 8
jmp 0x40786c
lea ecx, [esp + 0x20]
push ecx
push 0x439710
push esi
call fcn.004044e0
add esp, 0xc
test al, al
jne 0x407700
push esi
push str.Failed_in_2_:__s
call fcn.00404f70
add esp, 8
jmp 0x40786c
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x278]
push str._s_s.zip
push ecx
call fcn.004200a5
mov eax, dword [edi + 0x4c]
lea edx, [esp + 0x280]
push edx
push eax
lea ecx, [esp + 0x88]
push str._sUpdate_s
push ecx
call fcn.004200a5
add esp, 0x20
lea edx, [esp + 0x70]
push edx
mov ecx, edi
call fcn.00406f60
test al, al
je 0x40777d
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00404980
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00404240
add esp, 0x10
lea ecx, [edi + 0xf0]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x4077a1
lea edx, [esp + 0x70]
push edx
push str.Extract_Failed_:__s
call fcn.00404f70
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00404240
add esp, 0x10
mov dword [edi + 0x2c], ebx
lea edx, [esp + 0x70]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x470]
push eax
call fcn.00404120
lea ecx, [esp + 0x474]
push 0x438897
push ecx
call fcn.0042157f
add esp, 0xc
test eax, eax
jne 0x4077e0
push ebx
call fcn.004043c0
add esp, 4
jmp 0x40786c
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x474]
push 0x4396c8
push eax
call fcn.004044e0
add esp, 0xc
test al, al
je 0x40786c
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x407805
sub eax, edx
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + eax + 0x47d]
push eax
mov ecx, edi
call fcn.00406dd0
test al, al
jne 0x40784e
lea ecx, [esp + 0x34]
push ecx
push 0x4396c8
call fcn.00404980
lea edx, [esp + 0x3c]
push edx
push 0x4396c8
call fcn.00404240
add esp, 0x10
cmp dword [edi + 0xf0], ebx
jg 0x407862
mov eax, dword [edi + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x40786c
mov ecx, dword [edi + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x3f08]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042050e
add esp, 0x3f00
ret 4