Function at 0x405860
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4310f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x4c], esi
call fcn.004095a4
mov eax, dword [0x43fef0]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
mov byte [ebp - 4], 4
call fcn.00405100
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 5
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4058e8
push 0x43f874
lea ecx, [ebp - 0x2c]
call fcn.00424cad
mov edx, dword [ebp - 0x2c]
push 0
push 0x10
push edx
call fcn.0042c204
jmp 0x405b17
lea eax, [ebp - 0x1c]
push eax
call fcn.004237cd
mov ecx, dword [0x43fef0]
mov dword [ebp - 0x30], ecx
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.004237e0
mov edi, dword [eax + 4]
push 0
lea ecx, [ebp - 0x1c]
call fcn.004237e0
mov ebx, dword [eax + 8]
push 0
lea ecx, [ebp - 0x1c]
call fcn.004237e0
mov edx, dword [eax + 0xc]
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x34], edx
call fcn.004237e0
mov esi, dword [eax + 0x10]
push 0
lea ecx, [ebp - 0x1c]
inc esi
call fcn.004237e0
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x34]
push edi
push ebx
add eax, 0x76c
push ecx
push esi
push eax
lea edx, [ebp - 0x30]
push str._04d_02d_02d_02d_02d
push edx
call fcn.004230fd
add esp, 0x1c
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x48]
push eax
push 0x43f984
push ecx
call fcn.00424e2d
push str..xls
lea edx, [ebp - 0x40]
push eax
push edx
mov byte [ebp - 4], 7
call fcn.00424db9
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 9
call fcn.00424b24
push 1
push 0x5c
lea ecx, [ebp - 0x34]
call fcn.004229d2
mov edi, dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
push 1
push eax
lea esi, [edi + 0x68]
mov byte [ebp - 4], 0xa
mov ecx, esi
call fcn.00422c61
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax]
push ecx
push eax
call fcn.00414777
add esp, 8
lea ecx, [ebp - 0x44]
test eax, eax
setne bl
call fcn.00424b24
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call fcn.00424b24
test bl, bl
je 0x4059ea
push 0x5c
mov ecx, esi
call fcn.00424f27
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x18]
push edx
push esi
push eax
call fcn.00424d53
mov ecx, dword [ebp - 0x18]
push 0
push ecx
mov byte [ebp - 4], 0xb
call fcn.00414d4c
add esp, 8
cmp eax, 0xffffffff
je 0x405a19
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x38]
call fcn.00429a39
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push eax
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0xd
push eax
push str.DRIVER_s_DSN_FIRSTROWHASNAMES1_READONLYFALSE_CREATE_DB__s__DBQ_s
push ecx
call fcn.004230fd
mov edx, dword [ebp - 0x14]
add esp, 0x14
lea ecx, [ebp - 0xac]
push 8
push edx
call fcn.0040975a
test eax, eax
je 0x405ae7
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push eax
push str.CREATE_TABLE__s__
push ecx
call fcn.004230fd
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea ecx, [ebp - 0xac]
push edx
call fcn.004097db
mov eax, dword [edi + 0x80]
neg eax
sbb eax, eax
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x405ae7
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x24]
push eax
lea edx, [ebp - 0x3c]
push ecx
push edx
lea ecx, [edi + 0x74]
call fcn.0042447c
mov eax, dword [ebp - 0x28]
push eax
call fcn.004154c0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
add esp, 4
push eax
push ecx
push edx
lea eax, [ebp - 0x14]
push str.INSERT_INTO__s_VALUES__s__d_
push eax
call fcn.004230fd
mov ecx, dword [ebp - 0x14]
add esp, 0x14
push ecx
lea ecx, [ebp - 0xac]
call fcn.004097db
mov eax, dword [ebp - 0x3c]
jmp 0x405a89
mov dword [ebp - 4], 0xb
call fcn.00429a77
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.00424b24
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 6
call fcn.00424b24
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00424b24
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00424b24
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00424b24
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00424b24
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00424b24
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.00424b24
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], 0xffffffff
call fcn.00409621
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret