Function at 0x40e947
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov dword [ebp - 0x15c], 0x53
mov dword [ebp - 0x58], 0xd3
mov dword [ebp - 0x18], 0x7a
mov dword [ebp - 8], 0xc3
mov dword [ebp - 0x34], 0x4f
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0x81
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 4]
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x3c], 0x5c
jmp 0x40e9ba
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0x65
jae 0x40eba9
mov dword [ebp - 0x160], 0xda
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x24], 0x7a
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x164], 0
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x40], edx
cmp dword [ebp - 0x40], 0
je 0x40ea46
cmp dword [ebp - 0x40], 0x9f
je 0x40ea36
cmp dword [ebp - 0x40], 0xb7
je 0x40ea1e
jmp 0x40ea83
mov dword [ebp - 0x168], 0x9a
mov eax, dword [ebp - 0x60]
sub eax, dword [0x41a0d4]
mov dword [ebp - 0x20], eax
jmp 0x40eaae
mov eax, dword [ebp - 0x120]
xor edx, edx
div dword [ebp - 0x68]
mov dword [ebp + 8], eax
jmp 0x40eaae
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x170], 0x52
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x174], 0
mov ecx, dword [ebp - 0x11c]
or ecx, dword [ebp - 0x64]
mov dword [ebp - 0x64], ecx
jmp 0x40eaae
mov dword [ebp - 0x178], 0x93
mov dword [ebp - 0x17c], 2
mov edx, dword [0x41a0dc]
push edx
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x68]
imul ecx, dword [ebp - 0x24]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x34]
or edx, dword [0x41a0c4]
mov eax, dword [ebp - 0x18]
imul eax, dword [0x41a0c8]
cmp edx, eax
jne 0x40ead8
mov dword [ebp - 0x6c], 1
jmp 0x40eadf
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x6c], 0
jne 0x40eb1a
mov ecx, dword [ebp - 0x18]
and ecx, dword [ebp - 0x70]
jne 0x40eb04
mov edx, dword [ebp - 0x44]
imul edx, dword [0x41a0cc]
test edx, edx
jne 0x40eb04
mov dword [ebp - 0x74], 0
jmp 0x40eb0b
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x74], 0
jne 0x40eb1a
mov dword [ebp - 0x78], 0
jmp 0x40eb21
mov dword [ebp - 0x78], 1
cmp dword [ebp - 0x78], 0
jne 0x40eb52
mov eax, dword [ebp - 0x44]
imul eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x44]
imul ecx, dword [ebp - 0x24]
cmp eax, ecx
jne 0x40eb45
mov dword [ebp - 0x7c], 1
jmp 0x40eb4c
mov dword [ebp - 0x7c], 0
cmp dword [ebp - 0x7c], 0
je 0x40eb91
mov dword [ebp - 0x12c], 0x19
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x128], 0
mov edx, dword [ebp - 0x28]
or edx, dword [ebp - 0x28]
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x28]
or eax, dword [ebp - 0x28]
mov dword [ebp - 0x12c], eax
jmp 0x40eba4
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.GDI32.dll_SetArcDirection]
mov dword [0x41a0f8], eax
jmp 0x40e9b1
mov dword [ebp - 0x48], 0x25
jmp 0x40ebbb
mov eax, dword [ebp - 0x48]
add eax, 1
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0x30
jae 0x40f1b9
mov dword [ebp - 0x144], 0xf4
mov dword [ebp - 0x130], 0x28
mov dword [ebp - 0x50], 0x58
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x2c]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x14]
add edx, dword [0x41a104]
jne 0x40ec34
mov eax, dword [0x41a0dc]
add eax, dword [0x41a0dc]
jne 0x40ec34
mov dword [ebp - 0x80], 0
jmp 0x40ec3b
mov dword [ebp - 0x80], 1
cmp dword [ebp - 0x80], 0
je 0x40ec85
mov ecx, dword [ebp - 4]
xor ecx, dword [str.a6_b_]
jne 0x40ec66
mov edx, dword [0x41a0c0]
add edx, dword [0x41a108]
jne 0x40ec66
mov dword [ebp - 0x84], 0
jmp 0x40ec70
mov dword [ebp - 0x84], 1
cmp dword [ebp - 0x84], 0
je 0x40ec85
mov dword [ebp - 0x88], 1
jmp 0x40ec8f
mov dword [ebp - 0x88], 0
cmp dword [ebp - 0x88], 0
je 0x40ecd3
mov eax, dword [ebp - 0x50]
or eax, dword [ebp + 0xc]
je 0x40ecb4
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x30]
je 0x40ecb4
mov dword [ebp - 0x8c], 1
jmp 0x40ecbe
mov dword [ebp - 0x8c], 0
cmp dword [ebp - 0x8c], 0
je 0x40ecd3
mov dword [ebp - 0x90], 1
jmp 0x40ecdd
mov dword [ebp - 0x90], 0
cmp dword [ebp - 0x90], 0
je 0x40ed27
mov edx, dword [ebp - 0x130]
or edx, dword [0x41a0bc]
mov eax, dword [ebp - 8]
or eax, dword [ebp - 0x50]
cmp edx, eax
je 0x40ed08
mov dword [ebp - 0x94], 1
jmp 0x40ed12
mov dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 0
je 0x40ed27
mov dword [ebp - 0x98], 1
jmp 0x40ed31
mov dword [ebp - 0x98], 0
cmp dword [ebp - 0x98], 0
je 0x40ed70
mov ecx, dword [ebp - 0x14]
and ecx, dword [ebp - 0x10]
je 0x40ed59
mov edx, dword [ebp - 0x54]
imul edx, dword [ebp - 0x4c]
test edx, edx
je 0x40ed59
mov dword [ebp - 0x9c], 1
jmp 0x40ed63
mov dword [ebp - 0x9c], 0
cmp dword [ebp - 0x9c], 0
jne 0x40efaf
mov dword [ebp - 0x138], 0xa1
mov dword [ebp - 0x184], 0x49
mov dword [ebp - 0x188], 0xb
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x18c], 0xe4
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0x190], 0x95
mov dword [ebp - 0x13c], 0x69
mov dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x1c]
or eax, dword [0x41a0c4]
mov ecx, dword [ebp - 0x60]
imul ecx, dword [0x41a0c4]
cmp eax, ecx
jae 0x40eded
mov dword [ebp - 0xa0], 1
jmp 0x40edf7
mov dword [ebp - 0xa0], 0
cmp dword [ebp - 0xa0], 0
je 0x40ee48
mov edx, dword [0x41a0c8]
imul edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x138]
add eax, dword [0x41a0e0]
cmp edx, eax
je 0x40ee29
mov dword [ebp - 0xa4], 1
jmp 0x40ee33
mov dword [ebp - 0xa4], 0
cmp dword [ebp - 0xa4], 0
je 0x40ee48
mov dword [ebp - 0xa8], 1
jmp 0x40ee52
mov dword [ebp - 0xa8], 0
cmp dword [ebp - 0xa8], 0
je 0x40ee9d
mov ecx, dword [0x41a0d4]
xor ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x4c]
imul edx, dword [ebp - 0x13c]
cmp ecx, edx
jae 0x40ee7e
mov dword [ebp - 0xac], 1
jmp 0x40ee88
mov dword [ebp - 0xac], 0
cmp dword [ebp - 0xac], 0
je 0x40ee9d
mov dword [ebp - 0xb0], 1
jmp 0x40eea7
mov dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0
je 0x40eef0
mov eax, dword [0x41a0d0]
or eax, dword [ebp - 0x10]
jne 0x40eed1
mov ecx, dword [0x41a0f0]
sub ecx, dword [ebp - 0x14]
jne 0x40eed1
mov dword [ebp - 0xb4], 0
jmp 0x40eedb
mov dword [ebp - 0xb4], 1
cmp dword [ebp - 0xb4], 0
je 0x40eef0
mov dword [ebp - 0xb8], 1
jmp 0x40eefa
mov dword [ebp - 0xb8], 0
cmp dword [ebp - 0xb8], 0
je 0x40ef5a
mov edx, dword [ebp - 0xbc]
or edx, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xc0]
sub eax, dword [ebp - 0xc0]
cmp edx, eax
je 0x40ef2b
mov dword [ebp - 0xc4], 1
jmp 0x40ef35
mov dword [ebp - 0xc4], 0
cmp dword [ebp - 0xc4], 0
je 0x40ef5a
mov dword [ebp - 0x194], 0x8e
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [ebp - 0x150], eax
jmp 0x40efaa
mov dword [ebp - 0x198], pe_nt_image_headers32
mov dword [ebp - 0x19c], 0x9a
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x1a0], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0xc8], 0
mov edx, dword [ebp - 0xc8]
sub edx, dword [ebp - 0x140]
mov dword [ebp - 0xc8], edx
jmp 0x40efaf
jmp 0x40ec13
mov eax, dword [0x41a0dc]
imul eax, dword [0x41a0d8]
mov ecx, dword [0x41a108]
xor ecx, dword [ebp - 0x30]
cmp eax, ecx
jbe 0x40efd4
mov dword [ebp - 0xcc], 1
jmp 0x40efde
mov dword [ebp - 0xcc], 0
cmp dword [ebp - 0xcc], 0
je 0x40f025
mov edx, dword [ebp - 0x2c]
xor edx, dword [0x41a0e8]
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp + 0xc]
cmp edx, eax
jne 0x40f006
mov dword [ebp - 0xd0], 1
jmp 0x40f010
mov dword [ebp - 0xd0], 0
cmp dword [ebp - 0xd0], 0
je 0x40f025
mov dword [ebp - 0xd4], 1
jmp 0x40f02f
mov dword [ebp - 0xd4], 0
cmp dword [ebp - 0xd4], 0
je 0x40f079
mov ecx, dword [ebp - 4]
add ecx, dword [0x41a0c0]
jne 0x40f05a
mov edx, dword [ebp - 0x34]
xor edx, dword [0x41a0f0]
jne 0x40f05a
mov dword [ebp - 0xd8], 0
jmp 0x40f064
mov dword [ebp - 0xd8], 1
cmp dword [ebp - 0xd8], 0
je 0x40f079
mov dword [ebp - 0xdc], 1
jmp 0x40f083
mov dword [ebp - 0xdc], 0
cmp dword [ebp - 0xdc], 0
je 0x40f0bf
mov eax, dword [ebp - 0x14]
or eax, dword [ebp - 0x4c]
jne 0x40f0a8
mov ecx, dword [ebp - 0xc]
xor ecx, dword [ebp - 0xc]
jne 0x40f0a8
mov dword [ebp - 0xe0], 0
jmp 0x40f0b2
mov dword [ebp - 0xe0], 1
cmp dword [ebp - 0xe0], 0
jne 0x40f1a1
mov dword [ebp - 0x148], 0x71
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0x14c], 0x83
mov edx, dword [ebp - 0x144]
or edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x34]
sub eax, dword [0x41a0d4]
cmp edx, eax
jbe 0x40f0ff
mov dword [ebp - 0xe4], 1
jmp 0x40f109
mov dword [ebp - 0xe4], 0
cmp dword [ebp - 0xe4], 0
je 0x40f169
mov ecx, dword [ebp - 0xe8]
invalid
invalid