Function at 0x402c00
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x486bec
mov eax, dword fs:[0]
push eax
sub esp, 0xb2c
mov eax, dword [0x49e7c0]
xor eax, esp
mov dword [esp + 0xb28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49e7c0]
xor eax, esp
push eax
lea eax, [esp + 0xb40]
mov dword fs:[0], eax
mov eax, dword [esp + 0xb58]
mov esi, dword [esp + 0xb50]
mov edi, dword [esp + 0xb54]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x38]
xor ebx, ebx
sub eax, ebx
mov dword [esp + 0x14], ebx
je 0x402f54
sub eax, 3
je 0x402da0
sub eax, 1
je 0x402c80
mov dword [esp + 0x14], 0xfffffff7
jmp 0x4030d5
mov edx, dword [esi + 0x44]
mov eax, dword [esi + 0x40]
cmp eax, ebx
lea ecx, [esp + 0x78]
push ecx
push edx
push ecx
mov dword [esp + 0x20], esp
mov ecx, esp
je 0x402c9b
add dword [eax + 4], 1
mov dword [ecx], eax
call fcn.00473420
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x4030d5
mov eax, dword [esi + 0x44]
add eax, 1
push eax
lea ecx, [esp + 0xb20]
push str._04d.bmp
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0xb28]
push edx
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00402820
add esp, 0x18
or ebp, 0xffffffff
push ebp
push ebx
push eax
mov ecx, edi
mov dword [esp + 0xb54], 3
call fcn.00402360
cmp dword [esp + 0x34], 8
mov dword [esp + 0xb48], ebp
jb 0x402d11
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004775de
add esp, 4
mov dword [edi + 0x1c], ebx
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], edx
mov ecx, dword [esi + 0x40]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x30]
lea ecx, [esp + 0x54]
push ecx
mov ecx, eax
call edx
mov ecx, dword [eax]
mov dword [edi + 0x28], ecx
mov edx, dword [eax + 4]
mov dword [edi + 0x2c], edx
mov eax, dword [esi + 0x38]
mov dword [edi + 0x40], eax
mov ecx, dword [esi + 0x44]
mov dword [edi + 0x44], ecx
add dword [esi + 0x44], 1
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
mov dword [edi + 0x3c], ebp
mov dword [edi + 0x30], 0xffffff9d
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], ebx
je 0x4030d5
mov eax, dword [esp + 0x7c]
cdq
add dword [ecx + 0x90], eax
adc dword [ecx + 0x94], edx
jmp 0x4030d5
add dword [esi + 0x44], ebp
mov eax, dword [esi + 0x44]
lea edx, [esp + 0x2e4]
push edx
push eax
mov eax, dword [esi + 0x40]
cmp eax, ebx
push ecx
mov dword [esp + 0x20], esp
mov ecx, esp
mov ebp, 1
je 0x402dc2
add dword [eax + 4], ebp
mov dword [ecx], eax
call dword [0x49fc04]
cmp eax, ebx
mov dword [esp + 0x14], eax
jne 0x4030d5
cmp word [esp + 0x31c], bx
lea eax, [esp + 0x31c]
je 0x402dfa
cmp word [eax], 0x5c
jne 0x402df2
mov word [eax], 0x2f
add eax, 2
cmp word [eax], bx
jne 0x402de7
mov ecx, dword [esi + 0x30]
cmp ecx, ebx
je 0x402e3a
cmp dword [esi + 0x34], 8
jb 0x402e0c
mov eax, dword [esi + 0x20]
jmp 0x402e0f
lea eax, [esi + 0x20]
push ecx
push eax
lea ecx, [esp + 0x324]
push ecx
call fcn.00477bc0
add esp, 0xc
test eax, eax
jne 0x402d9d
mov eax, dword [esi + 0x30]
cmp word [esp + eax*2 + 0x31c], bx
je 0x402d9d
lea edx, [esp + 0x31c]
push edx
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.00402820
add esp, 0xc
or ebp, 0xffffffff
push ebp
push ebx
push eax
mov ecx, edi
mov dword [esp + 0xb54], 2
call fcn.00402360
cmp dword [esp + 0x50], 8
mov dword [esp + 0xb48], ebp
jb 0x402e83
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004775de
add esp, 4
test dword [esp + 0x2e8], 0x10000000
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
mov dword [edi + 0x1c], ebx
je 0x402ec3
push edi
mov dword [edi + 0x1c], 0x10
call fcn.00442350
add esp, 4
test al, al
jne 0x402ec3
push 0x2f
push 1
mov ecx, edi
call fcn.004022b0
cmp dword [esp + 0x2e4], 3
mov edx, dword [esp + 0x2fc]
mov eax, dword [esp + 0x300]
mov ecx, dword [esp + 0x30c]
mov dword [edi + 0x20], edx
mov edx, dword [esp + 0x310]
mov dword [edi + 0x24], eax
lea eax, [edi + 0x28]
mov dword [eax], ecx
mov dword [eax + 4], edx
jne 0x402f06
push eax
lea eax, [esp + 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov ecx, dword [esi + 0x38]
mov eax, dword [esp + 0x18]
mov dword [edi + 0x40], ecx
mov edx, dword [esi + 0x44]
mov dword [edi + 0x44], edx
add dword [esi + 0x44], 1
cmp eax, ebx
mov dword [edi + 0x3c], ebp
mov dword [edi + 0x30], 0xffffff9d
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], ebx
je 0x4030d5
mov ecx, dword [esp + 0x304]
add dword [eax + 0x90], ecx
mov edx, dword [esp + 0x308]
adc dword [eax + 0x94], edx
jmp 0x4030d5
or ebp, 0xffffffff
jmp 0x402f60
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jne 0x402ff4
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
push ebp
push ebx
push esi
lea ecx, [esp + 0x84]
mov dword [esp + 0xb54], ebx
call fcn.00402360
push 0x2a
push 1
lea ecx, [esp + 0x80]
call fcn.004022b0
cmp dword [esp + 0x90], 8
mov eax, dword [esp + 0x7c]
jae 0x402fba
lea eax, [esp + 0x7c]
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, ebp
mov dword [esi + 0x3c], eax
je 0x403101
cmp dword [esp + 0x90], 8
mov dword [esp + 0xb48], ebp
jb 0x40300b
mov edx, dword [esp + 0x7c]
push edx
call fcn.004775de
add esp, 4
jmp 0x40300b
lea ecx, [esp + 0x94]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x403113
push 0x48b5a8
lea edx, [esp + 0xc4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402f60
push 0x48b5a4
lea eax, [esp + 0xc4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x402f60
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x60]
push esi
push edx
call fcn.00402820
add esp, 0xc
push ebp
push ebx
push eax
mov ecx, edi
mov dword [esp + 0xb54], 1
call fcn.00402360
cmp dword [esp + 0x74], 8
jb 0x403080
mov eax, dword [esp + 0x60]
push eax
call fcn.004775de
add esp, 4
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0xb4]
mov eax, dword [esp + 0xb0]
mov dword [edi + 0x1c], ecx
mov ecx, dword [esp + 0xa8]
mov dword [edi + 0x20], edx
mov edx, dword [esp + 0xac]
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], edx
mov eax, dword [esi + 0x38]
mov dword [edi + 0x40], eax
mov ecx, dword [esi + 0x44]
mov dword [edi + 0x44], ecx
add dword [esi + 0x44], 1
mov dword [edi + 0x3c], ebp
mov dword [edi + 0x30], 0xffffff9d
mov dword [edi + 0x4c], ebx
mov dword [edi + 0x50], ebx
mov dword [edi + 0x54], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xb40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb28]
xor ecx, esp
call fcn.004777ea
add esp, 0xb38
ret
lea ecx, [esp + 0x78]
mov dword [esi + 0x3c], ebx
mov dword [esp + 0x14], ebp
call fcn.00401f00
jmp 0x4030d5
mov dword [esp + 0x14], 1
jmp 0x4030d5