Function at 0x413a96
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0xd4]
sub esp, 0x154
mov eax, dword [0x449748]
push ebx
mov dword [ebp + 0xd0], eax
mov eax, dword [0x44c944]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x413bce
cmp dword [0x44c948], ebx
mov dword [ebp - 0x74], ebx
jle 0x413bbd
xor esi, esi
mov ecx, dword [esi + eax + 4]
cmp ecx, dword [esi + eax]
je 0x413aef
cmp ecx, ebx
je 0x413aef
push ecx
call fcn.004262e0
mov eax, dword [0x44c944]
pop ecx
mov dword [esi + eax + 4], ebx
mov ecx, dword [esi + eax + 8]
cmp ecx, dword [esi + eax]
je 0x413b0c
cmp ecx, ebx
je 0x413b0c
push ecx
call fcn.004262e0
mov eax, dword [0x44c944]
pop ecx
mov dword [esi + eax + 8], ebx
mov ecx, dword [esi + eax]
cmp ecx, ebx
je 0x413b22
push ecx
call fcn.004262e0
mov eax, dword [0x44c944]
pop ecx
mov dword [esi + eax], ebx
mov ecx, dword [esi + eax + 0x10]
cmp ecx, ebx
je 0x413b3a
push ecx
call fcn.004262e0
mov eax, dword [0x44c944]
pop ecx
mov dword [esi + eax + 0x10], ebx
mov ecx, dword [esi + eax + 0x24]
cmp ecx, ebx
je 0x413b52
push ecx
call fcn.004262e0
mov eax, dword [0x44c944]
pop ecx
mov dword [esi + eax + 0x24], ebx
mov ecx, dword [esi + eax + 0x28]
cmp ecx, ebx
je 0x413b6a
push ecx
call fcn.004262e0
mov eax, dword [0x44c944]
pop ecx
mov dword [esi + eax + 0x28], ebx
mov edx, dword [esi + eax + 0xc]
cmp edx, ebx
mov dword [esi + eax + 0x2c], ebx
mov byte [esi + eax + 0x30], bl
je 0x413ba8
cmp edx, 1
je 0x413ba8
xor edi, edi
cmp esi, ebx
jle 0x413b97
lea ecx, [eax + 0xc]
cmp edx, dword [ecx]
je 0x413b97
inc edi
add ecx, 0x34
xor ebx, ebx
cmp edi, dword [ebp - 0x74]
jl 0x413b88
cmp dword [ebp - 0x74], edi
jne 0x413ba8
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [0x44c944]
inc dword [ebp - 0x74]
mov ecx, dword [ebp - 0x74]
add esi, 0x34
cmp ecx, dword [0x44c948]
jl 0x413ad2
cmp eax, ebx
je 0x413bce
push eax
call fcn.004262e0
pop ecx
mov dword [0x44c944], ebx
mov eax, dword [0x44c940]
cmp eax, ebx
je 0x413c0f
cmp dword [eax], ebx
je 0x413bfe
mov ecx, eax
xor esi, esi
mov ecx, dword [ecx]
cmp ecx, ebx
je 0x413bf4
push ecx
call fcn.004262e0
mov eax, dword [0x44c940]
pop ecx
mov dword [esi + eax], ebx
add esi, 4
lea ecx, [esi + eax]
cmp dword [ecx], ebx
jne 0x413bdf
cmp eax, ebx
je 0x413c0f
push eax
call fcn.004262e0
pop ecx
mov dword [0x44c940], ebx
or dword [ebp - 0x78], 0xffffffff
xor esi, esi
push 0xb60
mov dword [0x44c948], ebx
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x7c], ebx
call fcn.0042629a
pop ecx
mov dword [0x44c944], eax
lea eax, [ebp - 0x70]
push eax
push str..RSC
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x413e35
xor edi, edi
test byte [ebp - 0x70], 0x10
jne 0x413e0f
push ebx
push 0x441c3c
lea eax, [ebp - 0x44]
push 0x43f9cc
push eax
call fcn.00411b61
add esp, 0x10
mov esi, eax
push 0x441c38
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x413ce8
push str.ABORT
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x413e0f
mov al, byte [esi]
cmp al, 0x49
je 0x413c9f
cmp al, 0x69
jne 0x413caa
mov al, byte [esi + 1]
cmp al, 0x46
je 0x413ccf
cmp al, 0x66
je 0x413ccf
push ebx
push 1
push str.:try
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0xdc]
call fcn.0041b0a0
add esp, 0x14
cmp ax, 2
jne 0x413ce8
jmp 0x413e0f
add esi, 2
push esi
push dword [ebp + 0xdc]
call fcn.0041b022
test eax, eax
pop ecx
pop ecx
je 0x413e0f
cmp edi, 0xb2c
jl 0x413d03
lea eax, [edi + 0x34]
push eax
push dword [0x44c944]
call fcn.004266f3
pop ecx
pop ecx
jmp 0x413d08
mov eax, dword [0x44c944]
cmp eax, ebx
je 0x413e0f
mov dword [0x44c944], eax
lea esi, [edi + eax]
lea eax, [ebp - 0x44]
push eax
call fcn.0042f33d
pop ecx
mov dword [esi], eax
call fcn.004136de
mov eax, dword [0x44c944]
lea eax, [edi + eax + 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov eax, dword [0x44c944]
mov ecx, dword [ebp - 0x50]
add eax, edi
mov dword [eax + 0x20], ecx
mov byte [eax + 0x30], bl
mov eax, dword [0x44c940]
cmp eax, ebx
je 0x413dc9
xor esi, esi
cmp dword [eax], ebx
je 0x413da1
mov ecx, dword [0x44c944]
push dword [edi + ecx + 0x2c]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x413d80
mov eax, dword [0x44c940]
inc esi
cmp dword [eax + esi*4], ebx
jne 0x413d5c
jmp 0x413da1
mov eax, dword [0x44c944]
push dword [edi + eax + 0x2c]
call fcn.004262e0
mov eax, dword [0x44c940]
mov edx, dword [0x44c944]
pop ecx
mov ecx, dword [eax + esi*4]
mov dword [edi + edx + 0x2c], ecx
cmp dword [eax + esi*4], ebx
jne 0x413dc4
lea ecx, [esi*4 + 8]
push ecx
push eax
call fcn.004266f3
cmp eax, ebx
pop ecx
pop ecx
jne 0x413dd3
mov eax, dword [0x44c940]
or esi, 0xffffffff
jmp 0x413dd8
or esi, 0xffffffff
jmp 0x413dd8
push 8
call fcn.0042629a
pop ecx
xor esi, esi
mov dword [0x44c940], eax
cmp esi, ebx
jl 0x413e09
cmp eax, ebx
je 0x413e09
mov ecx, dword [0x44c944]
mov ecx, dword [edi + ecx + 0x2c]
push dword [0x44ac78]
lea eax, [eax + esi*4]
push ecx
mov dword [eax], ecx
mov dword [eax + 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x413e06
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x7c], esi
inc dword [ebp - 0x74]
add edi, 0x34
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413c4e
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x74]
cmp esi, 0x37
jge 0x413e52
lea eax, [esi + 1]
imul eax, eax, 0x34
push eax
push dword [0x44c944]
call fcn.004266f3
cmp eax, ebx
pop ecx
pop ecx
je 0x413e52
mov dword [0x44c944], eax
mov ecx, dword [ebp - 0x78]
cmp ecx, ebx
mov dword [0x44c948], esi
jl 0x413e79
mov edi, dword [ebp - 0x7c]
cmp ecx, edi
je 0x413e79
mov eax, dword [0x44c940]
lea ecx, [eax + ecx*4]
mov edx, dword [ecx]
lea eax, [eax + edi*4]
mov edi, dword [eax]
mov dword [ecx], edi
mov dword [eax], edx
mov ecx, dword [ebp + 0xd0]
cmp esi, ebx
pop edi
pop esi
setg al
pop ebx
call fcn.00428306
add ebp, 0xd4
leave
ret