Function at 0x40b410
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43363e
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x455070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
push 0x43c308
lea ecx, [ebp - 0x28]
call fcn.004065b0
mov byte [ebp - 4], 2
push 0x43c30c
lea ecx, [ebp - 0x40]
call fcn.004065b0
mov byte [ebp - 4], 3
lea ecx, [ebp + 8]
call fcn.00405c20
sub eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.0040e910
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x40b4bd
lea ecx, [ebp + 8]
call fcn.00405c20
sub eax, 1
push eax
push 0
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp + 8]
call fcn.004033f0
mov dword [ebp - 0x2e4], eax
mov edx, dword [ebp - 0x2e4]
push edx
lea ecx, [ebp + 8]
call fcn.004032c0
lea ecx, [ebp - 0x3a0]
call fcn.00405b70
lea ecx, [ebp + 0x20]
call fcn.00405c20
sub eax, 1
push eax
lea ecx, [ebp + 0x20]
call fcn.0040e910
movzx eax, word [eax]
cmp eax, 0x5c
jne 0x40b516
lea ecx, [ebp + 0x20]
call fcn.00405c20
sub eax, 1
push eax
push 0
lea ecx, [ebp - 0x328]
push ecx
lea ecx, [ebp + 0x20]
call fcn.004033f0
mov dword [ebp - 0x2ec], eax
mov edx, dword [ebp - 0x2ec]
push edx
lea ecx, [ebp + 0x20]
call fcn.004032c0
lea ecx, [ebp - 0x328]
call fcn.00405b70
movzx eax, byte [ebp + 0x38]
test eax, eax
je 0x40b593
push 0xffffffffffffffff
push 0x43c310
lea ecx, [ebp + 8]
call fcn.0040b9a0
mov dword [ebp - 0x2d0], eax
cmp dword [ebp - 0x2d0], 0xffffffff
je 0x40b593
lea ecx, [ebp + 8]
call fcn.00405c20
push eax
mov ecx, dword [ebp - 0x2d0]
add ecx, 1
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp + 8]
call fcn.004033f0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00406660
movzx eax, al
test eax, eax
jne 0x40b587
push 0x43c314
lea ecx, [ebp + 0x20]
call fcn.0040eb20
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp + 0x20]
call fcn.0040e970
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x58]
call fcn.00405b70
lea edx, [ebp - 0x2a8]
push edx
lea ecx, [ebp + 0x20]
call fcn.004059f0
push eax
call dword [sym.imp.iImportLib.dll_void____stdcall_SafeFindFirstFile_wchar_t_const___struct__WIN32_FIND_DATAW__]
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0xffffffff
jne 0x40b5c9
lea ecx, [ebp + 0x20]
call fcn.004059f0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.00405ac0
push 0x43c318
lea ecx, [ebp - 0x28]
call fcn.0040eb20
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004059f0
push eax
call dword [sym.imp.iImportLib.dll_void____stdcall_SafeFindFirstFile_wchar_t_const___struct__WIN32_FIND_DATAW__]
mov dword [ebp - 0x2b0], eax
cmp dword [ebp - 0x2b0], 0xffffffff
jne 0x40b64c
mov byte [ebp - 0x2aa], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00405b70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405b70
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00405b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00405b70
mov al, byte [ebp - 0x2aa]
jmp 0x40b980
push 0x43c320
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x358]
push eax
call fcn.0040c630
add esp, 0xc
mov dword [ebp - 0x2f4], eax
mov ecx, dword [ebp - 0x2f4]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004032c0
lea ecx, [ebp - 0x358]
call fcn.00405b70
push 0x43c324
lea edx, [ebp + 0x20]
push edx
lea eax, [ebp - 0x388]
push eax
call fcn.0040c630
add esp, 0xc
mov dword [ebp - 0x2fc], eax
mov ecx, dword [ebp - 0x2fc]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004032c0
lea ecx, [ebp - 0x388]
call fcn.00405b70
mov edx, 1
test edx, edx
je 0x40b933
lea eax, [ebp - 0x2a8]
push eax
mov ecx, dword [ebp - 0x2b0]
push ecx
call dword [sym.imp.iImportLib.dll_int___stdcall_SafeFindNextFile_void___struct__WIN32_FIND_DATAW__]
test eax, eax
jne 0x40b6e6
jmp 0x40b933
mov dword [ebp - 0x2b4], 0x43c328
lea edx, [ebp - 0x27c]
mov dword [ebp - 0x2bc], edx
mov eax, dword [ebp - 0x2bc]
mov cx, word [eax]
mov word [ebp - 0x2c8], cx
mov edx, dword [ebp - 0x2b4]
cmp cx, word [edx]
jne 0x40b762
cmp word [ebp - 0x2c8], 0
je 0x40b756
mov eax, dword [ebp - 0x2bc]
mov cx, word [eax + 2]
mov word [ebp - 0x2c2], cx
mov edx, dword [ebp - 0x2b4]
cmp cx, word [edx + 2]
jne 0x40b762
add dword [ebp - 0x2bc], 4
add dword [ebp - 0x2b4], 4
cmp word [ebp - 0x2c2], 0
jne 0x40b6fc
mov dword [ebp - 0x2cc], 0
jmp 0x40b76d
sbb eax, eax
or eax, 1
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2e0], ecx
cmp dword [ebp - 0x2e0], 0
je 0x40b92e
mov dword [ebp - 0x2c0], 0x43c32c
lea edx, [ebp - 0x27c]
mov dword [ebp - 0x2b8], edx
mov eax, dword [ebp - 0x2b8]
mov cx, word [eax]
mov word [ebp - 0x2c6], cx
mov edx, dword [ebp - 0x2c0]
cmp cx, word [edx]
jne 0x40b802
cmp word [ebp - 0x2c6], 0
je 0x40b7f6
mov eax, dword [ebp - 0x2b8]
mov cx, word [eax + 2]
mov word [ebp - 0x2c4], cx
mov edx, dword [ebp - 0x2c0]
cmp cx, word [edx + 2]
jne 0x40b802
add dword [ebp - 0x2b8], 4
add dword [ebp - 0x2c0], 4
cmp word [ebp - 0x2c4], 0
jne 0x40b79c
mov dword [ebp - 0x2d4], 0
jmp 0x40b80d
sbb eax, eax
or eax, 1
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], ecx
cmp dword [ebp - 0x2d8], 0
je 0x40b92e
mov edx, dword [ebp - 0x2a8]
and edx, 0x10
je 0x40b89e
push 0
sub esp, 0x18
mov eax, esp
mov dword [ebp - 0x30c], esp
lea ecx, [ebp - 0x27c]
push ecx
lea edx, [ebp - 0x40]
push edx
push eax
call fcn.0040c630
add esp, 0xc
mov dword [ebp - 0x2f0], eax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x310], eax
mov byte [ebp - 4], 5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x304], esp
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x28]
push eax
push ecx
call fcn.0040c630
add esp, 0xc
mov dword [ebp - 0x308], eax
mov byte [ebp - 4], 3
call fcn.0040b410
add esp, 0x34
jmp 0x40b92e
lea ecx, [ebp - 0x27c]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x370]
push eax
call fcn.0040c630
add esp, 0xc
mov dword [ebp - 0x2e8], eax
mov ecx, dword [ebp - 0x2e8]
mov dword [ebp - 0x2f8], ecx
mov byte [ebp - 4], 6
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x340]
push ecx
call fcn.0040c630
add esp, 0xc
mov dword [ebp - 0x2dc], eax
push 0
mov ecx, dword [ebp - 0x2f8]
call fcn.004059f0
push eax
mov ecx, dword [ebp - 0x2dc]
call fcn.004059f0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x300], eax
lea ecx, [ebp - 0x340]
call fcn.00405b70
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x370]
call fcn.00405b70
jmp 0x40b6bc
mov edx, dword [ebp - 0x2b0]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 0x2a9], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.00405b70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405b70
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00405b70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x20]
call fcn.00405b70
mov al, byte [ebp - 0x2a9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004314a6
mov esp, ebp
pop ebp
ret