Function at 0x40c827
Capabilities:
Enumerate files on windows
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov dword [ebp - 4], 0xe0
mov dword [ebp - 0x1c], 8
mov dword [ebp - 8], 0xbe
mov dword [ebp - 0x30], 0xbe
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x24], 0x74
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x44], 0xa5
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 8]
add eax, dword [0x41a0c8]
jne 0x40c8a2
mov ecx, dword [0x41a0c4]
sub ecx, dword [0x41a0bc]
jne 0x40c8a2
mov dword [ebp - 0x5c], 0
jmp 0x40c8a9
mov dword [ebp - 0x5c], 1
cmp dword [ebp - 0x5c], 0
je 0x40c8e2
mov edx, dword [0x41a0c0]
add edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 4]
cmp edx, eax
jne 0x40c8cc
mov dword [ebp - 0x60], 1
jmp 0x40c8d3
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0
je 0x40c8e2
mov dword [ebp - 0x64], 1
jmp 0x40c8e9
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 0
je 0x40c91e
mov ecx, dword [ebp - 8]
and ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
or edx, dword [ebp - 0x1c]
cmp ecx, edx
jne 0x40c908
mov dword [ebp - 0x68], 1
jmp 0x40c90f
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x68], 0
je 0x40c91e
mov dword [ebp - 0x6c], 1
jmp 0x40c925
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x6c], 0
je 0x40c955
mov eax, dword [ebp - 0x44]
and eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x28]
and ecx, dword [ebp - 0x14]
cmp eax, ecx
jae 0x40c944
mov dword [ebp - 0x70], 1
jmp 0x40c94b
mov dword [ebp - 0x70], 0
cmp dword [ebp - 0x70], 0
jne 0x40cd7e
mov dword [ebp - 0xf0], 0x11
mov dword [ebp - 0x10], 3
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0x10]
or edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
je 0x40c9e1
cmp dword [ebp - 0x38], 0xd9
je 0x40c999
cmp dword [ebp - 0x38], 0xe7
je 0x40c9bf
jmp 0x40ca58
mov dword [ebp - 0xf4], 0x72
mov ecx, dword [0x41a0ec]
push ecx
mov edx, dword [0x41a0d4]
push edx
call dword [sym.imp.ole32.dll_CoTreatAsClass]
mov dword [ebp - 8], eax
jmp 0x40ca72
mov dword [ebp - 0xf8], 0xd5
mov dword [ebp - 0x74], 0x48
mov eax, dword [ebp - 0x74]
add eax, dword [0x41a0cc]
mov dword [ebp - 0x74], eax
jmp 0x40ca72
mov dword [ebp - 0xfc], 0x1a
mov dword [ebp - 0x100], 0xe8
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0x104], 0xcd
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0xcc], 0
mov ecx, dword [ebp - 0xc4]
and ecx, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], ecx
mov edx, dword [0x41a0d4]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00410b67
add esp, 8
jmp 0x40ca72
mov dword [ebp - 0x110], 9
mov ecx, dword [0x41a0dc]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x44], eax
mov edx, dword [0x41a0f4]
or edx, dword [ebp - 0x18]
mov eax, dword [0x41a108]
add eax, dword [ebp - 0x24]
cmp edx, eax
jbe 0x40ca90
mov dword [ebp - 0x78], 1
jmp 0x40ca97
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x78], 0
jne 0x40cac3
mov ecx, dword [ebp - 0xc]
or ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
or edx, dword [ebp - 0xc]
cmp ecx, edx
je 0x40cab6
mov dword [ebp - 0x7c], 1
jmp 0x40cabd
mov dword [ebp - 0x7c], 0
cmp dword [ebp - 0x7c], 0
je 0x40cb22
mov dword [ebp - 0x84], 0
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x80], 0xa
mov dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xd0]
or eax, dword [ebp - 0xd4]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x84]
add ecx, dword [ebp - 0x80]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x3c]
or edx, dword [ebp - 0x3c]
mov dword [ebp - 0x3c], edx
jmp 0x40cb33
mov eax, dword [ebp - 0xec]
or eax, dword [0x41a0e0]
mov dword [0x41a0f4], eax
mov ecx, dword [0x41a0dc]
xor ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0xd8]
imul edx, dword [ebp - 0x48]
cmp ecx, edx
je 0x40cb56
mov dword [ebp - 0x88], 1
jmp 0x40cb60
mov dword [ebp - 0x88], 0
cmp dword [ebp - 0x88], 0
jne 0x40cbb0
mov eax, dword [0x41a0f8]
imul eax, dword [0x41a0d8]
mov ecx, dword [0x41a0ec]
and ecx, dword [0x41a100]
cmp eax, ecx
jae 0x40cb91
mov dword [ebp - 0x8c], 1
jmp 0x40cb9b
mov dword [ebp - 0x8c], 0
cmp dword [ebp - 0x8c], 0
jne 0x40cbb0
mov dword [ebp - 0x90], 0
jmp 0x40cbba
mov dword [ebp - 0x90], 1
cmp dword [ebp - 0x90], 0
jne 0x40cc07
mov edx, dword [0x41a0d8]
or edx, dword [0x41a0d4]
mov eax, dword [ebp - 4]
or eax, dword [0x41a0f0]
cmp edx, eax
jne 0x40cbe8
mov dword [ebp - 0x94], 1
jmp 0x40cbf2
mov dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 0
jne 0x40cc07
mov dword [ebp - 0x98], 0
jmp 0x40cc11
mov dword [ebp - 0x98], 1
cmp dword [ebp - 0x98], 0
jne 0x40cc4d
mov ecx, dword [ebp - 0xc]
and ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x10]
cmp ecx, edx
jae 0x40cc36
mov dword [ebp - 0x9c], 1
jmp 0x40cc40
mov dword [ebp - 0x9c], 0
cmp dword [ebp - 0x9c], 0
je 0x40cd1e
mov dword [ebp - 0x118], 0
mov dword [ebp - 0xa0], 0xcb
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xe0], 0x68
mov dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0xa0]
and eax, dword [ebp - 0xdc]
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 4]
push ecx
push str.rpKvehIYSqvuwj
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xe4], eax
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40cce3
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
jmp 0x40ccc6
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xe0], edx
push 0
mov eax, dword [ebp - 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40cd0b
mov dword [ebp - 0x40], 0xb90
mov ecx, dword [ebp - 0xe8]
or ecx, dword [ebp - 0x40]
mov dword [ebp - 0xa0], ecx
jmp 0x40cd7e
mov edx, dword [0x41a0e8]
push edx
mov eax, dword [ebp - 0x120]
push eax
movzx ecx, byte [0x41a0f4]
push ecx
movzx edx, byte [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc0]
push eax
mov ecx, dword [0x41a104]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.USER32.dll_CreateIcon]
mov dword [0x41a0c0], eax
mov eax, dword [ebp - 8]
mov dword [0x41a0f0], eax
mov ecx, dword [0x41a0f0]
mov dword [0x41a0d0], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xec]
mov dword [0x41a0c0], edx
jmp 0x40c880
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x48], eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x40cdb0
mov dword [ebp - 0x28], 0x1c8b
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x58]
imul ecx, dword [ebp - 0x18]
cmp eax, ecx
je 0x40cdd6
mov dword [ebp - 0xa4], 1
jmp 0x40cde0
mov dword [ebp - 0xa4], 0
cmp dword [ebp - 0xa4], 0
jne 0x40ce24
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x14]
je 0x40ce05
mov eax, dword [ebp - 0x58]
or eax, dword [ebp - 0x2c]
je 0x40ce05
mov dword [ebp - 0xa8], 1
jmp 0x40ce0f
mov dword [ebp - 0xa8], 0
cmp dword [ebp - 0xa8], 0
jne 0x40ce24
mov dword [ebp - 0xac], 0
jmp 0x40ce2e
mov dword [ebp - 0xac], 1
cmp dword [ebp - 0xac], 0
jne 0x40ce7f
mov ecx, dword [0x41a108]
or ecx, dword [0x41a0fc]
mov edx, dword [0x41a0d0]
imul edx, dword [0x41a0fc]
cmp ecx, edx
jbe 0x40ce60
mov dword [ebp - 0xb0], 1
jmp 0x40ce6a
mov dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0
jne 0x40ce7f
mov dword [ebp - 0xb4], 0
jmp 0x40ce89
mov dword [ebp - 0xb4], 1
cmp dword [ebp - 0xb4], 0
jne 0x40cec7
mov eax, dword [ebp - 0x28]
xor edx, edx
div dword [ebp - 0x24]
mov ecx, dword [ebp - 0x34]
xor ecx, dword [ebp - 0x14]
cmp eax, ecx
je 0x40ceb0
mov dword [ebp - 0xb8], 1
jmp 0x40ceba
mov dword [ebp - 0xb8], 0
cmp dword [ebp - 0xb8], 0
je 0x40cf6e
mov dword [ebp - 0xbc], 0xe1
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x20], 0x9c
push str.NqfhmYaD.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0xc0], eax
lea edx, [ebp - 0xbc]
push edx
push str.bJvRzFn
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40cf33
mov edx, dword [ebp - 0x4c]
add edx, 1
mov dword [ebp - 0x4c], edx
jmp 0x40cf13
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
push str.uVeGRNxmDto
mov ecx, dword [ebp - 0xc0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
or edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x50]
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0x54], ecx
jmp 0x40d02c
mov edx, dword [0x41a0d0]
push edx
mov eax, dword [0x41a0f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41a0c8], eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.GDI32.dll_PolylineTo]
test eax, eax
je 0x40cfdd
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x40cfdd
mov dword [ebp - 0x124], 0x96
mov dword [ebp - 0x128], 0x84
mov eax, dword [ebp - 0x58]
xor edx, edx
div dword [ebp - 0x30]
mov dword [ebp - 0x12c], eax
mov edx, dword [0x41a0ec]
add edx, dword [0x41a100]
mov dword [0x41a0d8], edx
jmp 0x40d02c
mov dword [ebp - 0x130], 0xd2
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0x41a0d8]
push ecx
mov edx, dword [0x41a0c8]
push edx
mov eax, dword [0x41a0fc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp + 8], eax
mov eax, dword [0x41a0f4]
xor edx, edx
div dword [0x41a0d4]
mov dword [0x41a104], eax
mov ecx, dword [0x41a108]
xor ecx, dword [0x41a100]
mov dword [0x41a108], ecx
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret