Function at 0x415070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x158
push ebx
push ebp
push esi
push edi
mov ebx, str.AddedMenu
lea edi, [esp + 0x10]
call fcn.00401300
mov ebp, dword [esp + 0x16c]
mov eax, edi
push eax
lea ecx, [ebp + 0x4d]
push ecx
call fcn.00402cc0
lea ecx, [ebp + 0x49]
test eax, eax
je 0x4150a4
mov ecx, eax
lea eax, [esp + 0x14]
call fcn.00401290
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, 0x424d78
je 0x4150d5
lea edi, [eax - 0xc]
push edi
call esi
test eax, eax
jg 0x4150d5
push edi
call fcn.0040b07a
add esp, 4
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xeb]
push eax
push 0
push 0x143
push 0xeb
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ebx, str.UserMenu
lea edi, [esp + 0x10]
call fcn.00401300
mov edx, edi
push edx
lea eax, [ebp + 0x4d]
push eax
call fcn.00402cc0
test eax, eax
jne 0x415123
lea eax, [ebp + 0x49]
mov ecx, eax
lea eax, [esp + 0x1c]
call fcn.00401290
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
cmp ecx, 0x424d78
je 0x415150
lea edi, [eax - 0xc]
push edi
call esi
test eax, eax
jg 0x415150
push edi
call fcn.0040b07a
add esp, 4
mov edi, dword [esp + 0x1c]
mov ecx, 0x41ff88
mov eax, edi
jmp 0x415160
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415180
test dl, dl
je 0x41517c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415180
add eax, 2
add ecx, 2
test dl, dl
jne 0x415160
xor eax, eax
jmp 0x415185
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea edx, [edi - 0xc]
sete bl
cmp edx, 0x424d78
je 0x4151a8
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x4151a8
push edi
call fcn.0040b07a
add esp, 4
lea edi, [ebp + 0x96]
test bl, bl
je 0x4151d9
push str._CommonProgramsMenu_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
call fcn.00402230
test eax, eax
je 0x415212
mov eax, dword [edi]
lea ecx, [esi + 1]
cmp ecx, esi
jb 0x415207
push esi
push str._CommonProgramsMenu_
jmp 0x4151fe
push str._UserProgramsMenu_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
call fcn.00402230
test eax, eax
je 0x415212
mov eax, dword [edi]
lea ecx, [esi + 1]
cmp ecx, esi
jb 0x415207
push esi
push str._UserProgramsMenu_
push eax
call fcn.0040b610
add esp, 0xc
mov edx, dword [edi]
mov dword [edx - 8], esi
mov eax, dword [edi]
mov byte [esi + eax], 0
mov eax, dword [edi]
push eax
push str.ProductMenu
mov eax, ebp
call fcn.004179a0
mov ecx, dword [0x424d88]
mov edi, dword [edi]
push 0x420570
push 0x420570
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [edi - 8]
push eax
push edi
lea edx, [esp + 0x24]
push edx
call fcn.00402090
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebp
call edx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x415484
lea eax, [esp + 0x54]
shr eax, 0x10
mov dword [esp + 0x24], eax
jmp 0x415294
mov eax, dword [esp + 0x24]
mov ebp, dword [0x424d88]
mov dword [esp + 0x10], ebp
test ax, ax
jne 0x4152b9
lea edx, [esp + 0x54]
movzx eax, dx
lea ecx, [esp + 0x10]
call fcn.00401dc0
mov ebp, dword [esp + 0x10]
jmp 0x415304
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x415304
lea ecx, [esi + 0xd]
push ecx
call fcn.0040ade5
add esp, 4
test eax, eax
je 0x415304
lea edx, [esi + 1]
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
lea ebp, [eax + 0xc]
cmp edx, esi
jb 0x415304
push esi
lea eax, [esp + 0x58]
push eax
push ebp
call fcn.0040b610
add esp, 0xc
mov ecx, 0x41fd00
mov eax, ebp
jmp 0x415310
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415330
test dl, dl
je 0x41532c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415330
add eax, 2
add ecx, 2
test dl, dl
jne 0x415310
xor eax, eax
jmp 0x415335
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41543c
mov ecx, 0x41fd04
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415364
test dl, dl
je 0x415360
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415364
add eax, 2
add ecx, 2
test dl, dl
jne 0x415344
xor eax, eax
jmp 0x415369
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x41543c
test byte [esp + 0x28], 0x10
je 0x415431
mov ecx, dword [0x424d88]
push 0x41fd08
push 0x41fd08
mov dword [esp + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [ebp - 8]
push eax
push ebp
lea edx, [esp + 0x1c]
push edx
call fcn.00402090
mov eax, dword [0x424d88]
mov esi, dword [esp + 0x10]
mov ebx, dword [esi - 8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push eax
push ecx
push esi
lea edx, [esp + 0x28]
push edx
call fcn.00402090
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x16c]
mov ecx, dword [eax + 0xeb]
push edi
push 0
push 0x143
push 0xeb
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
lea edx, [edi - 0xc]
cmp edx, 0x424d78
je 0x415410
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415410
push edi
call fcn.0040b07a
add esp, 4
lea eax, [esi - 0xc]
cmp eax, 0x424d78
je 0x415431
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x415431
push esi
call fcn.0040b07a
add esp, 4
lea ecx, [ebp - 0xc]
cmp ecx, 0x424d78
jmp 0x415445
lea edx, [ebp - 0xc]
cmp edx, 0x424d78
je 0x41545e
add ebp, 0xfffffff4
push ebp
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41545e
push ebp
call fcn.0040b07a
add esp, 4
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x415290
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x16c]
mov ecx, dword [ebp + 0xeb]
push 0
push 0
push 0x14e
push 0xeb
push ecx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [esp + 0x18]
lea edx, [eax - 0xc]
cmp edx, 0x424d78
je 0x4154cc
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4154cc
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.0040b07a
add esp, 4
mov eax, dword [esp + 0x14]
lea ecx, [eax - 0xc]
cmp ecx, 0x424d78
je 0x4154f9
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4154f9
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0040b07a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret 4