Function at 0x43562e
Capabilities:
Delete file

Disassembly:
push 0x58
push 0x514bc0
call fcn.0044769c
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x68], ebx
xor eax, eax
lea edi, [ebp - 0x64]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 1
push ebx
lea eax, [ebp - 0x20]
push eax
call fcn.00407d95
pop ecx
pop ecx
test eax, eax
jne 0x43568d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x52254c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
je 0x435706
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x30]
call fcn.0043547e
pop ecx
test eax, eax
jne 0x4356bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
jmp 0x435706
cmp dword [ebp - 0x30], ebx
je 0x435706
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x50]
push eax
call fcn.00442913
pop ecx
push ebx
push dword [ebp - 0x50]
mov esi, 0x522414
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov edi, eax
push 0xa
pop eax
call fcn.004169fd
add edi, eax
cmp edi, dword [ebp - 0x50]
ja 0x435706
push 0xa0000026
call fcn.0042c80d
pop ecx
push dword [ebp - 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], ebx
call fcn.00435750
push 2
pop edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x28], ebx
jne 0x43573a
cmp dword [ebp - 0x20], ebx
je 0x43573a
push 0x52257c
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x43575c
push 1
push 0x522410
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], ebx
call fcn.00435a05
mov dword [ebp - 4], 0xfffffffe
jmp 0x435a6f
xor esi, esi
inc esi
mov dword [ebp - 0x44], esi
call fcn.00435d93
mov dword [ebp - 0x34], 4
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
push str._oi__CALL_DLFilterShadow__st2000Sv___ui___ui___i___ib___ni___ni_
push esi
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call fcn.004223b7
add esp, 0x30
test eax, 0xfffffffe
je 0x4357b3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
call fcn.00422e4a
pop ecx
jmp 0x43573a
mov esi, 0x1000c
push dword [ebp - 0x1c]
call sub.ODBC32.dll_SQLFetch
movzx eax, ax
and eax, 0xfffffffe
test ax, ax
je 0x435947
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
call fcn.00422e4a
pop ecx
call fcn.00435cbd
test eax, eax
je 0x43573a
push ebx
push dword [0x5223c8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x43573a
call fcn.00435cd8
mov esi, eax
lea edi, [ebp - 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00435cbd
test eax, eax
je 0x435832
mov eax, dword [0x522680]
lea ecx, [eax - 0xc]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], eax
je 0x43582a
add dword [ebp - 0x3c], 0xc
jmp 0x43581f
sub eax, 0xc
mov dword [0x522680], eax
mov ecx, dword [ebp - 0x60]
mov eax, 0x1000c
and ecx, eax
cmp ecx, eax
jne 0x435853
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x38]
push eax
push str._oi__CALL_DLDelShadowFile__i___i_
jmp 0x43586a
test byte [ebp - 0x60], 4
je 0x4357dc
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x38]
push eax
push str._oi__CALL_DLDelData__i___i_
push 1
push 1
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
call fcn.004223b7
add esp, 0x24
test eax, 0xfffffffe
jne 0x4357cf
push dword [ebp - 0x1c]
call sub.ODBC32.dll_SQLFetch
movzx eax, ax
and eax, 0xfffffffe
test ax, ax
jne 0x4358f4
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
call fcn.0042288c
pop ecx
pop ecx
cmp dword [ebp - 0x30], ebx
je 0x4358f4
cmp eax, ebx
jbe 0x4358e3
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4358e3
push 0x858
push 7
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, str.DeleteFile
call fcn.0042cdde
add esp, 0x10
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
call fcn.00422e4a
pop ecx
test dword [ebp - 0x60], 0x10008
jne 0x4357dc
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x38]
push eax
push str._oi__CALL_DLSetShadowAttr__i___i___ui___ui_
push 1
push 1
push ebx
push ebx
push dword [ebp - 0x20]
call fcn.004223b7
add esp, 0x2c
jmp 0x4357dc
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x64]
push eax
push 0xfffffffffffffff0
push 1
push dword [ebp - 0x1c]
call sub.ODBC32.dll_SQLGetData
movzx eax, ax
and eax, 0xfffffffe
test ax, ax
jne 0x4357b8
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4357b8
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x68]
push eax
push 0xfffffffffffffff0
push edi
push dword [ebp - 0x1c]
call sub.ODBC32.dll_SQLGetData
movzx eax, ax
and eax, 0xfffffffe
test ax, ax
jne 0x4357b8
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4357b8
lea eax, [ebp - 0x2c]
push eax
push ebx
lea eax, [ebp - 0x60]
push eax
push 0xfffffffffffffff0
push 3
push dword [ebp - 0x1c]
call sub.ODBC32.dll_SQLGetData
movzx eax, ax
and eax, 0xfffffffe
test ax, ax
jne 0x4357b8
cmp dword [ebp - 0x2c], 0xffffffff
je 0x4357b8
mov eax, dword [ebp - 0x60]
test eax, 0x10000
je 0x4359e2
test al, 8
je 0x4357b8
mov ecx, eax
and ecx, esi
cmp ecx, esi
je 0x4359f5
and eax, 6
cmp al, 6
je 0x4357b8
lea eax, [ebp - 0x68]
push eax
call fcn.00435d26
jmp 0x4357b8
cmp dword [ebp - 0x28], ebx
je 0x435a7d
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 0x28], ebx
sete al
call fcn.004476e1
ret