Function at 0x40a084
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x40a08c
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
push ebp
push 0x40a6d2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402e44
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00405f88
lea edx, [ebp - 0x28]
mov eax, 1
call fcn.00402e44
mov eax, dword [ebp - 0x28]
mov edx, 0x40a6e8
call fcn.004017e8
je 0x40a1a5
push 0
lea eax, [ebp - 0x2c]
call fcn.00403128
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
call fcn.004016ac
mov eax, dword [ebp - 0x2c]
call fcn.0040189c
push eax
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.00402e44
mov eax, dword [ebp - 0x30]
call fcn.0040189c
push eax
call fcn.004022f4
lea eax, [ebp - 8]
call fcn.00401530
call fcn.00402f50
mov esi, eax
test esi, esi
jle 0x40a14f
mov ebx, 1
push dword [ebp - 8]
push 0x40a6f4
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.00402e44
push dword [ebp - 0x34]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00401764
inc ebx
dec esi
jne 0x40a129
push 1
lea eax, [ebp - 0x38]
call fcn.00403128
mov eax, dword [ebp - 0x38]
call fcn.0040189c
push eax
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 8]
mov edx, 0x40a700
call fcn.004016f0
mov eax, dword [ebp - 0x3c]
call fcn.0040189c
push eax
lea eax, [ebp - 0x40]
call fcn.00403128
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x20]
call fcn.004016ac
mov eax, dword [ebp - 0x40]
call fcn.0040189c
push eax
push 0
push 0
call fcn.00408c34
call fcn.00401428
lea edx, [ebp - 0x44]
xor eax, eax
call fcn.00402e44
mov eax, dword [ebp - 0x44]
call fcn.004060a4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov cl, 2
mov edx, 0xfffffffe
call fcn.00405fb4
lea edx, [ebp - 0x1a]
mov eax, dword [ebp - 0x10]
mov ecx, 2
call fcn.00405fac
movzx edx, word [ebp - 0x1a]
neg edx
sub edx, 2
mov eax, dword [ebp - 0x10]
mov cl, 2
call fcn.00405fb4
movzx edx, word [ebp - 0x1a]
mov eax, 0x40d794
call fcn.004019c8
mov eax, 0x40d794
call fcn.004018f0
mov edx, eax
movzx ecx, word [ebp - 0x1a]
mov eax, dword [ebp - 0x10]
call fcn.00405fac
mov eax, dword [0x40d794]
call fcn.00405f44
test al, al
jne 0x40a225
call fcn.00401428
lea edx, [ebp - 0x48]
mov eax, dword [0x40d794]
call fcn.00405f88
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
call fcn.00403128
mov edx, dword [ebp - 0x4c]
mov eax, 0x40d798
pop ecx
call fcn.004016f0
push 0
mov eax, dword [0x40d798]
call fcn.0040189c
push eax
mov eax, dword [0x40d794]
call fcn.0040189c
push eax
call fcn.004022f4
mov eax, dword [0x40d798]
call fcn.00403524
mov dword [0x40d790], eax
mov eax, dword [0x40d790]
add eax, 0x1d
mov edx, 0x40a710
call fcn.00401584
push 0x34
mov eax, 0x40d788
mov ecx, 1
mov edx, dword [0x4094c4]
call fcn.00401fb0
add esp, 4
xor ebx, ebx
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x54]
mov eax, ebx
call fcn.00405e28
mov edx, dword [ebp - 0x54]
mov eax, dword [0x40d790]
xor ecx, ecx
call fcn.0040346c
mov edx, dword [ebp - 0x50]
mov eax, dword [0x40d788]
lea eax, [eax + ebx*4]
call fcn.00401584
inc ebx
cmp ebx, 0x34
jne 0x40a2a6
mov eax, 0x21
call fcn.00409ad8
mov byte [0x40c454], al
call fcn.00402f50
mov esi, eax
test esi, esi
jle 0x40a327
mov ebx, 1
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.00402e44
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 0x58]
call fcn.00405e9c
mov eax, dword [ebp - 0x58]
mov edx, 0x40a71c
call fcn.004017e8
jne 0x40a323
mov byte [0x40c454], 1
inc ebx
dec esi
jne 0x40a2f8
cmp byte [0x40c454], 0
je 0x40a33a
mov eax, dword [edi + 0x18]
xor edx, edx
call fcn.00403864
cmp byte [0x40c454], 0
jne 0x40a3d9
mov eax, 0x1f
call fcn.00409ad8
test al, al
je 0x40a3d9
movzx edx, word [ebp - 0x1a]
neg edx
sub edx, 6
mov eax, dword [ebp - 0x10]
mov cl, 2
call fcn.00405fb4
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, 4
call fcn.00405fac
mov edx, dword [ebp - 0x18]
neg edx
movzx eax, word [ebp - 0x1a]
sub edx, eax
sub edx, 6
mov eax, dword [ebp - 0x10]
mov cl, 2
call fcn.00405fb4
call fcn.0040340c
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.00409c08
xor edx, edx
xor eax, eax
call fcn.00407aec
mov dword [0x40d78c], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
xor edx, edx
call fcn.00405fb4
mov eax, dword [0x40d78c]
mov edx, dword [ebp - 0x14]
call fcn.00404aec
mov eax, dword [ebp - 0x14]
call fcn.00405634
mov eax, dword [ebp - 0x10]
call fcn.00405634
mov eax, dword [0x40d788]
mov edx, dword [eax + 0x60]
mov eax, dword [edi + 0x18]
call fcn.00406ed0
mov eax, dword [0x40d788]
mov edx, dword [eax + 0x60]
mov eax, dword [0x40c45c]
mov eax, dword [eax]
call fcn.00406ed0
cmp byte [0x40c454], 0
jne 0x40a522
mov eax, dword [0x40d788]
mov edx, dword [eax]
mov eax, dword [edi + 0x2c]
call fcn.00406ed0
mov eax, dword [0x40d788]
mov edx, dword [eax + 4]
mov eax, dword [edi + 0x5c]
call fcn.00406ed0
mov eax, dword [0x40d788]
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x30]
call fcn.00406ed0
mov eax, dword [0x40d788]
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0x48]
call fcn.00406ed0
mov eax, dword [0x40d788]
mov edx, dword [eax + 0x10]
mov eax, dword [edi + 0x4c]
call fcn.00406ed0
mov eax, dword [0x40d788]
mov edx, dword [eax + 0x38]
mov eax, dword [edi + 0x58]
call fcn.00406ed0
mov eax, dword [0x40d788]
mov edx, dword [eax + 0x3c]
mov eax, dword [edi + 0x54]
call fcn.00406ed0
mov eax, dword [0x40d788]
mov edx, dword [eax + 0x44]
mov eax, dword [edi + 0x64]
call fcn.00406ed0
mov eax, dword [0x40d788]
mov edx, dword [eax + 0x48]
mov eax, dword [edi + 0x28]
call fcn.00406ed0
mov eax, 0x1c
call fcn.00409ad8
mov edx, eax
mov eax, dword [edi + 0x68]
call fcn.00403864
mov eax, dword [0x40d788]
mov edx, dword [eax + 0x78]
mov eax, dword [edi + 0x68]
call fcn.00406ed0
mov eax, dword [edi + 0x68]
mov edx, 0x8000000f
call fcn.0040732c
mov eax, 0x30
call fcn.00409b00
mov edx, eax
mov eax, dword [edi + 0x48]
call fcn.00407284
mov eax, 0x31
call fcn.00409b00
mov edx, eax
mov eax, dword [edi + 0x48]
call fcn.004072b4
mov eax, 0x32
call fcn.00409b00
mov edx, eax
mov eax, dword [edi + 0x4c]
call fcn.00407284
mov eax, 0x33
call fcn.00409b00
mov edx, eax
mov eax, dword [edi + 0x4c]
call fcn.004072b4
mov eax, 0x19
call fcn.00409ad8
test al, al
je 0x40a5e4
lea eax, [ebp - 8]
mov edx, dword [0x40d788]
mov edx, dword [edx + 0x68]
call fcn.004015c8
mov eax, 0x1b
call fcn.00409b00
cmp eax, 2
jge 0x40a5be
mov ebx, 1
xor esi, esi
jmp 0x40a5b4
mov esi, ebx
mov eax, 0x1b
call fcn.00409b00
sub eax, 1
jb 0x40a572
je 0x40a586
jmp 0x40a590
mov eax, dword [ebp - 8]
call fcn.0040189c
push eax
push 0
call fcn.00402584
mov ebx, eax
jmp 0x40a590
mov eax, dword [ebp - 8]
call fcn.00409d84
mov ebx, eax
test ebx, ebx
je 0x40a5b4
mov eax, dword [0x40c45c]
mov eax, dword [eax]
cmp ebx, dword [eax + 0x28]
je 0x40a5b4
mov eax, dword [edi + 0x18]
cmp ebx, dword [eax + 0x28]
je 0x40a5b4
push 0
push 0
push 0x10
push ebx
call fcn.00402664
test ebx, ebx
je 0x40a5e4
cmp ebx, esi
jne 0x40a55d
jmp 0x40a5e4
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00405e9c
call fcn.00408ad0
cmp al, 3
jbe 0x40a5dc
mov eax, dword [ebp - 0xc]
call fcn.00409f48
jmp 0x40a5e4
mov eax, dword [ebp - 0xc]
call fcn.00409e40
xor ebx, ebx
mov esi, 0x40d7a4
mov eax, ebx
cmp eax, 7
ja case.default.0x40a5f2
jmp dword [eax*4 + 0x40a5f9]
xor eax, eax
mov dword [ebp - 4], eax
jmp case.default.0x40a5f2
mov dword [ebp - 4], 2
jmp case.default.0x40a5f2
mov dword [ebp - 4], 0xb
jmp case.default.0x40a5f2
mov dword [ebp - 4], 7
jmp case.default.0x40a5f2
mov dword [ebp - 4], 0x19
jmp case.default.0x40a5f2
mov dword [ebp - 4], 0x17
jmp case.default.0x40a5f2
mov dword [ebp - 4], 0x16
jmp case.default.0x40a5f2
mov dword [ebp - 4], 0x18
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
call fcn.00409b10
mov eax, dword [ebp - 0x68]
lea edx, [ebp - 0x64]
call fcn.004030b8
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x60]
call fcn.00405e9c
mov edx, dword [ebp - 0x60]
mov eax, esi
call fcn.00401584
inc ebx
add esi, 4
cmp ebx, 8
jne 0x40a5eb
cmp byte [0x40c454], 0
je 0x40a6aa
mov eax, edi
call fcn.0040ae08
call fcn.00401428
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a6d9
lea eax, [ebp - 0x68]
mov edx, 0x13
call fcn.00401554
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00401554
ret