Function at 0x401de4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff2c
mov eax, 0x4aa6ac
push ebx
push esi
push edi
call fcn.0049eba4
mov dword [ebp - 0xac], 3
lea edx, [ebp + 0x10]
lea eax, [ebp + 0x10]
call fcn.004a7884
inc dword [ebp - 0xac]
lea edx, [ebp + 0xc]
mov word [ebp - 0xb8], 8
lea eax, [ebp + 0xc]
call fcn.004a7884
inc dword [ebp - 0xac]
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.004a7884
inc dword [ebp - 0xac]
lea edx, [ebp + 8]
mov word [ebp - 0xb8], 0x14
lea eax, [ebp - 0x1c]
call fcn.004a7884
inc dword [ebp - 0xac]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 8], edx
lea edx, [ebp - 8]
inc dword [ebp - 0xac]
call fcn.00453564
dec dword [ebp - 0xac]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004a78c0
mov word [ebp - 0xb8], 8
mov word [ebp - 0xb8], 0x20
lea edx, [ebp + 8]
lea eax, [ebp - 0x20]
call fcn.004a7884
inc dword [ebp - 0xac]
mov eax, dword [eax]
xor edx, edx
mov dword [ebp - 0xc], edx
lea edx, [ebp - 0xc]
inc dword [ebp - 0xac]
call fcn.004535d8
dec dword [ebp - 0xac]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004a78c0
mov word [ebp - 0xb8], 8
mov word [ebp - 0xb8], 0x2c
mov edx, 0x4a91c4
lea eax, [ebp - 0x24]
call fcn.004a784c
inc dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
inc dword [ebp - 0xac]
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x28]
call fcn.004a7918
lea eax, [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 0x10]
inc dword [ebp - 0xac]
lea edx, [ebp - 0xc]
call fcn.004a7918
dec dword [ebp - 0xac]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.004a78c0
mov word [ebp - 0xb8], 8
mov word [ebp - 0xb8], 0x38
mov edx, 0x4a91ce
lea eax, [ebp - 0x2c]
call fcn.004a784c
inc dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
inc dword [ebp - 0xac]
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
call fcn.004a7918
lea eax, [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x34], edx
lea ecx, [ebp - 0x34]
inc dword [ebp - 0xac]
lea edx, [ebp - 0xc]
call fcn.004a7918
lea eax, [ebp - 0x34]
mov edx, 0x4a91d0
mov ecx, dword [eax]
lea eax, [ebp - 0x38]
push ecx
call fcn.004a784c
inc dword [ebp - 0xac]
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
inc dword [ebp - 0xac]
pop eax
call fcn.0045349c
dec dword [ebp - 0xac]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.004a78c0
mov word [ebp - 0xb8], 8
mov word [ebp - 0xb8], 0x44
mov edx, str.________
lea eax, [ebp - 0x3c]
call fcn.004a784c
inc dword [ebp - 0xac]
xor eax, eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 8]
inc dword [ebp - 0xac]
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x40]
call fcn.004a7918
lea eax, [ebp - 0x40]
xor edx, edx
mov dword [ebp - 0x44], edx
lea ecx, [ebp - 0x44]
inc dword [ebp - 0xac]
lea edx, [ebp - 0xc]
call fcn.004a7918
lea eax, [ebp - 0x44]
mov edx, 0x4a91de
mov ecx, dword [eax]
lea eax, [ebp - 0x48]
push ecx
call fcn.004a784c
inc dword [ebp - 0xac]
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x18]
inc dword [ebp - 0xac]
pop eax
call fcn.0045349c
dec dword [ebp - 0xac]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.004a78c0
mov word [ebp - 0xb8], 8
xor ecx, ecx
mov dword [ebp - 0xcc], ecx
push 0
cmp dword [ebp - 0x10], 0
je 0x40210c
mov eax, dword [ebp - 0x10]
jmp 0x402111
mov eax, 0x4a91e3
push eax
cmp dword [ebp + 8], 0
je 0x40211d
mov edx, dword [ebp + 8]
jmp 0x402122
mov edx, 0x4a91e2
push edx
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
je 0x4027cf
mov eax, dword [ebp - 0x14]
call fcn.004533f4
test al, al
je 0x402173
push 0
cmp dword [ebp - 0x18], 0
je 0x402149
mov ecx, dword [ebp - 0x18]
jmp 0x40214e
mov ecx, 0x4a91e5
push ecx
cmp dword [ebp - 0x14], 0
je 0x40215a
mov eax, dword [ebp - 0x14]
jmp 0x40215f
mov eax, 0x4a91e4
push eax
call sub.KERNEL32.DLL_CopyFileA
test eax, eax
je 0x402173
mov dword [ebp - 0xcc], 1
mov edx, dword [0x4b2b9c]
mov ecx, dword [edx]
mov dl, 1
mov eax, dword [0x412610]
call fcn.0041ecdc
mov ecx, dword [0x4b2b9c]
mov dword [ebp - 0xd0], eax
mov eax, dword [0x412610]
mov dl, 1
mov ecx, dword [ecx]
call fcn.0041ecdc
mov dword [ebp - 0xd4], eax
mov word [ebp - 0xb8], 0x50
mov eax, dword [ebp - 0xd0]
call fcn.00437b80
mov ebx, dword [ebp - 0xd0]
add ebx, 0x248
mov eax, ebx
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov word [ebp - 0xb8], 0x5c
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x4c]
inc dword [ebp - 0xac]
lea edx, [ebp + 8]
mov eax, str.alter_table_
call fcn.004a79a4
lea eax, [ebp - 0x4c]
push eax
mov edx, str.__drop_column
lea eax, [ebp - 0x50]
call fcn.004a784c
inc dword [ebp - 0xac]
xor ecx, ecx
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x54]
inc dword [ebp - 0xac]
lea edx, [ebp - 0x50]
pop eax
call fcn.004a7918
lea eax, [ebp - 0x54]
xor edx, edx
mov dword [ebp - 0x58], edx
lea ecx, [ebp - 0x58]
inc dword [ebp - 0xac]
lea edx, [ebp + 0xc]
call fcn.004a7918
mov eax, dword [ebx]
lea edx, [ebp - 0x58]
mov ecx, dword [eax]
mov edx, dword [edx]
call dword [ecx + 0x38]
dec dword [ebp - 0xac]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.004a78c0
mov word [ebp - 0xb8], 0x68
mov eax, dword [ebp - 0xd0]
call fcn.0041f57c
mov word [ebp - 0xb8], 0x50
jmp 0x40236d
lea edx, [ebp + 0x10]
lea eax, [ebp - 0x64]
call fcn.004a7884
inc dword [ebp - 0xac]
lea edx, [ebp + 0xc]
mov ecx, dword [eax]
lea eax, [ebp - 0x60]
push ecx
call fcn.004a7884
inc dword [ebp - 0xac]
lea edx, [ebp + 8]
mov ecx, dword [eax]
lea eax, [ebp - 0x5c]
push ecx
mov word [ebp - 0xb8], 0x74
call fcn.004a7884
inc dword [ebp - 0xac]
mov eax, dword [eax]
pop edx
pop ecx
call fcn.00401a2c
dec dword [ebp - 0xac]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.004a78c0
mov eax, dword [ebp - 0xd0]
call fcn.00437b80
mov edx, dword [ebp - 0xd0]
mov byte [edx + 0x265], 1
mov ebx, dword [ebp - 0xd0]
add ebx, 0x248
mov eax, ebx
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov word [ebp - 0xb8], 0x80
xor ecx, ecx
mov dword [ebp - 0x68], ecx
lea ecx, [ebp - 0x68]
inc dword [ebp - 0xac]
lea edx, [ebp + 8]
mov eax, 0x4a9204
call fcn.004a79a4
lea eax, [ebp - 0x68]
push eax
mov edx, 0x4a9214
lea eax, [ebp - 0x6c]
call fcn.004a784c
inc dword [ebp - 0xac]
xor ecx, ecx
mov dword [ebp - 0x70], ecx
lea ecx, [ebp - 0x70]
inc dword [ebp - 0xac]
lea edx, [ebp - 0x6c]
pop eax
call fcn.004a7918
mov eax, dword [ebx]
lea edx, [ebp - 0x70]
mov ecx, dword [eax]
mov edx, dword [edx]
call dword [ecx + 0x38]
dec dword [ebp - 0xac]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.004a78c0
mov word [ebp - 0xb8], 0x8c
mov eax, dword [ebp - 0xd0]
call fcn.00437b74
mov word [ebp - 0xb8], 0x50
jmp 0x4024e2
mov eax, dword [ebp - 0xd4]
call fcn.00437b80
mov ebx, dword [ebp - 0xd4]
add ebx, 0x248
mov eax, ebx
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x44]
mov word [ebp - 0xb8], 0x98
xor ecx, ecx
mov dword [ebp - 0x74], ecx
lea ecx, [ebp - 0x74]
inc dword [ebp - 0xac]
lea edx, [ebp - 0x10]
mov eax, str.select__from_
call fcn.004a79a4
lea eax, [ebp - 0x74]
push eax
mov edx, 0x4a9226
lea eax, [ebp - 0x78]
call fcn.004a784c
inc dword [ebp - 0xac]
xor ecx, ecx
mov dword [ebp - 0x7c], ecx
lea ecx, [ebp - 0x7c]
inc dword [ebp - 0xac]
lea edx, [ebp - 0x78]
pop eax
call fcn.004a7918
mov eax, dword [ebx]
lea edx, [ebp - 0x7c]
mov ecx, dword [eax]
mov edx, dword [edx]
call dword [ecx + 0x38]
dec dword [ebp - 0xac]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.004a78c0
mov word [ebp - 0xb8], 0xa4
mov eax, dword [ebp - 0xd4]
call fcn.00437b74
mov word [ebp - 0xb8], 0x50
jmp 0x4025c6
mov eax, dword [ebp - 0xd4]
call fcn.00439f10
mov eax, dword [ebp - 0xd0]
call fcn.00439f10
jmp 0x4026c5
mov eax, dword [ebp - 0xd0]
call fcn.0043a2a8
mov word [ebp - 0xb8], 0xb0
lea edx, [ebp + 0xc]
lea eax, [ebp - 0x80]
call fcn.004a7884
inc dword [ebp - 0xac]
mov edx, dword [eax]
mov eax, dword [ebp - 0xd0]
call fcn.00438b88
mov ebx, eax
lea edx, [ebp + 0xc]
lea eax, [ebp - 0x84]
call fcn.004a7884
inc dword [ebp - 0xac]
mov edx, dword [eax]
mov eax, dword [ebp - 0xd4]
call fcn.00438b88
mov esi, eax
lea eax, [ebp - 0x94]
call fcn.004a7ac4
mov edx, eax
mov eax, esi
inc dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx + 0x64]
lea edx, [ebp - 0x94]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb4]
dec dword [ebp - 0xac]
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.004a7af8
dec dword [ebp - 0xac]
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.004a78c0
mov eax, dword [ebp - 0xd0]
mov edx, dword [eax]
call dword [edx + 0x248]
mov eax, dword [ebp - 0xd0]
call fcn.0043a228
mov eax, dword [ebp - 0xd4]
call fcn.0043a228
mov edx, dword [ebp - 0xd4]
cmp byte [edx + 0xa1], 0
je 0x4025e1
cmp dword [ebp - 0xcc], 0
je 0x402717
mov eax, dword [ebp - 0x14]
call fcn.004533f4
test al, al
jne 0x402717
cmp dword [ebp - 0x14], 0
je 0x4026f8
mov edx, dword [ebp - 0x14]
jmp 0x4026fd
mov edx, 0x4a9229
push edx
cmp dword [ebp - 0x18], 0
je 0x402709
mov eax, dword [ebp - 0x18]
jmp 0x40270e
mov eax, 0x4a9228
push eax
call fcn.004a0378
add esp, 8
mov eax, dword [ebp - 0x10]
call fcn.004a7844
mov eax, dword [ebp - 0x18]
call fcn.004a7844
mov word [ebp - 0xb8], 8
mov ebx, dword [ebp - 0xd0]
mov dword [ebp - 0x9c], ebx
test ebx, ebx
je 0x40276a
mov eax, dword [ebx]
mov dword [ebp - 0x98], eax
mov word [ebp - 0xb8], 0xc8
mov edx, 3
mov eax, dword [ebp - 0x9c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xb8], 0xbc
xor edx, edx
mov dword [ebp - 0xd0], edx
mov ebx, dword [ebp - 0xd4]
mov dword [ebp - 0xa4], ebx
test ebx, ebx
je 0x4027ac
mov eax, dword [ebx]
mov dword [ebp - 0xa0], eax
mov word [ebp - 0xb8], 0xe0
mov edx, 3
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xb8], 0xd4
xor edx, edx
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0x10]
call fcn.004a7844
mov eax, dword [ebp - 0x18]
call fcn.004a7844
cmp word [ebp - 0xb6], 0
je 0x4027cf
ret
dec dword [ebp - 0xac]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp + 8]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.004a78c0
dec dword [ebp - 0xac]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.004a78c0
mov ecx, dword [ebp - 0xc8]
mov dword fs:[0], ecx
mov esp, ebp
mov edi, dword [ebp - 0xe0]
mov esi, dword [ebp - 0xdc]
mov ebx, dword [ebp - 0xd8]
pop ebp
ret