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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b6ffc
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x2e8], eax
push ebx
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x300]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x24], ebx
call fcn.00471eac
mov ecx, dword [eax + 4]
call fcn.0046b2c8
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x308], edi
call fcn.00422fa0
lea esi, [ebx + 0x190]
mov ecx, esi
call fcn.00456410
test eax, eax
je 0x42ba98
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov dword [esp + 0x40], edi
call fcn.00455ce0
mov esi, eax
push 0x4ef7cc
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], esi
call fcn.00402560
cmp esi, edi
mov byte [esp + 0x308], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x34], edi
jle 0x42b9c8
xor esi, esi
mov dword [esp + 0x54], esi
lea ebx, [ebx]
mov ecx, dword [esp + 0x3c]
lea edx, [esi + ecx + 0x208]
push edx
lea ecx, [esp + 0x48]
call fcn.00402560
mov eax, dword [esp + 0x3c]
lea ecx, [esi + eax]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x30c], 2
call fcn.00402560
mov edx, dword [esp + 0x2c]
push 1
push edx
lea eax, [esp + 0x20]
add ebx, 0x190
push eax
mov ecx, ebx
mov byte [esp + 0x314], 3
call fcn.00457c50
mov eax, dword [esp + 0x18]
mov byte [esp + 0x308], 4
cmp dword [eax - 0xc], edi
je 0x42b723
push 0x4c4450
push eax
call fcn.00495a5d
add esp, 8
cmp eax, edi
je 0x42b71f
mov ecx, dword [esp + 0x3c]
cmp byte [esi + ecx + 0xbf1], 1
jne 0x42b71f
lea ecx, [esp + 0x60]
call fcn.0046e650
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x60]
push edx
push eax
mov byte [esp + 0x310], 5
call fcn.004591c0
add esp, 8
cmp dword [esp + 0x68], 1
jle 0x42b7c1
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx + 4]
sub eax, 0x10
push eax
call fcn.00401560
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x28], edi
cmp dword [edi - 0xc], 0
mov byte [esp + 0x308], 6
jl 0x42b7c6
push 0x4c7508
push edi
call fcn.00495b82
add esp, 8
test eax, eax
je 0x42b7c6
sub eax, edi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x42b7c6
inc dword [esp + 0x4c]
cmp dword [esp + 0x68], 2
jle 0x42b7c1
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 8]
sub eax, 0x10
push eax
call fcn.00401560
add eax, 0x10
add esp, 4
mov dword [esp + 0x38], eax
push esi
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x310], 7
call fcn.00401a30
mov byte [esp + 0x308], 8
call fcn.0046c2c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x42b900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, ebx
mov byte [esp + 0x30c], 9
call fcn.00456080
test eax, eax
je 0x42b2b5
lea ecx, [esp + 0x90]
call fcn.0046e650
lea edx, [esp + 0x90]
push edx
push edi
mov byte [esp + 0x310], 0xa
call fcn.004591c0
mov eax, 2
add esp, 8
cmp dword [esp + 0x68], eax
jle 0x42b7c1
mov ecx, dword [esp + 0x64]
add ecx, 8
cmp dword [esp + 0x98], eax
jle 0x42b7c1
mov eax, dword [esp + 0x94]
add eax, 8
push ecx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.00418640
add esp, 0xc
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x30c], 0xb
call fcn.00401bf0
mov eax, dword [esp + 0x78]
add eax, 0xfffffff0
mov byte [esp + 0x308], 0xa
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b2a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x90]
mov byte [esp + 0x308], 9
call fcn.0046e87c
cmp dword [esp + 0x68], 0
jle 0x42b7c1
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x64]
push ecx
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esp + 0x54]
push str._s_s_b_s
push edx
call fcn.00401cb0
push 0x24c
lea eax, [esp + 0xc0]
push 0
push eax
mov dword [esp + 0xc4], 0
call fcn.00494750
mov edx, dword [esp + 0x68]
add esp, 0x20
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x58], eax
mov dword [esp + 0x20], 1
cmp eax, 0xffffffff
je 0x42b672
lea ebx, [ebx]
cmp dword [esp + 0x20], 0
je 0x42b663
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x84]
call fcn.00402560
mov esi, eax
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x80]
mov byte [esp + 0x30c], 0xc
call fcn.00402560
mov edx, dword [esi]
mov edx, dword [edx - 0xc]
mov ecx, dword [esp + 0x38]
sub edx, dword [ecx - 0xc]
mov ecx, eax
push edx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x310], 0xd
call fcn.00401a30
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
mov byte [esp + 0x308], 0xf
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b3b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x80]
add eax, 0xfffffff0
mov byte [esp + 0x308], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b3e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x50]
sub eax, dword [edx - 0xc]
lea ecx, [esp + 0x1c]
push eax
lea eax, [esp + 0x88]
push eax
call fcn.004019b0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x30c], 0x11
call fcn.00401bf0
mov eax, dword [esp + 0x84]
add eax, 0xfffffff0
mov byte [esp + 0x308], 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b43e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0046c2c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x42b900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x40], eax
cmp dword [esp + 0x68], 0
mov byte [esp + 0x308], 0x12
jle 0x42b7c1
mov ecx, dword [esp + 0x64]
mov eax, dword [ecx]
lea edx, [esp + 0xd0]
push edx
push eax
lea eax, [esp + 0x48]
push str._s_s
push eax
call fcn.00401cb0
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x34]
add esp, 0x10
push esi
mov ecx, edi
call fcn.004204d0
mov dword [esp + 0x20], eax
test eax, eax
je 0x42b90a
mov esi, dword [esp + 0x1c]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x42b4d8
push edi
lea ecx, [esp + 0x20]
call fcn.00401510
mov esi, dword [esp + 0x1c]
lea ecx, [edi + 1]
push ecx
push esi
call fcn.004969d8
add esp, 8
test edi, edi
jl 0x42b9be
cmp edi, dword [esi - 8]
jg 0x42b9be
mov dword [esi - 0xc], edi
xor edx, edx
mov word [esi + edi*2], dx
mov eax, dword [esp + 0x2c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x34], esp
mov edi, esp
push eax
call fcn.00401560
add eax, 0x10
mov dword [edi], eax
lea ebx, [esi - 0x10]
mov dword [esp + 0x64], esp
mov edi, esp
push ebx
mov byte [esp + 0x314], 0x13
call fcn.00401560
add eax, 0x10
mov dword [edi], eax
lea eax, [esp + 0x94]
add esp, 4
push eax
mov byte [esp + 0x314], 0x12
call fcn.00418ea0
add esp, 0xc
mov ecx, dword [esp + 0x24]
push eax
add ecx, 0x2438
mov byte [esp + 0x30c], 0x14
call fcn.00425940
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
mov eax, dword [esp + 0x8c]
add eax, 0xfffffff0
mov byte [esp + 0x308], 0x12
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42b598
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x88]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b5bb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x30]
push eax
add edi, 0x2458
push esi
mov ecx, edi
mov dword [esp + 0x38], 0
call fcn.00417d70
test eax, eax
je 0x42b5fb
inc dword [esp + 0x30]
jmp 0x42b603
mov dword [esp + 0x30], 1
push esi
mov ecx, edi
call fcn.0043ef90
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x308], 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42b639
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x308], 9
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b330
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
jmp 0x42b330
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
mov byte [esp + 0x308], 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b69a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0x308], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b6c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x308], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b6ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x308], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b70e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x308], 4
call fcn.0046e87c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x308], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b747
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x308], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b76f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x308], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b797
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add dword [esp + 0x54], 0xbf4
inc eax
cmp eax, dword [esp + 0x74]
mov dword [esp + 0x34], eax
jge 0x42b9c8
mov esi, dword [esp + 0x54]
mov ebx, dword [esp + 0x24]
xor edi, edi
jmp 0x42b070
call fcn.00464489
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push str.The_name_of_file___s__is_invalid__nFile_name_must_be__xxx_bnk_pmk.yyy___n_and_m_is_a_number.
push edx
call fcn.00401cb0
mov eax, dword [esp + 0x20]
add esp, 0xc
push 1
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x68], esp
mov esi, esp
push eax
call fcn.00401560
add eax, 0x10
add esp, 4
mov ecx, 0x50b7e0
mov dword [esi], eax
call fcn.0040b710
mov ecx, dword [esp + 0x24]
call fcn.00422fa0
lea eax, [edi - 0x10]
mov byte [esp + 0x308], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b834
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x308], 4
call fcn.0046e87c
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x308], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b86d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x308], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b895
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x308], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b8bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x308], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b8e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x13]
mov dword [esp + 0x308], 0xffffffff
call fcn.00418aa0
xor eax, eax
jmp 0x42bab1
push 0x80004005
call fcn.00401150
push esi
lea ecx, [esp + 0x18]
push str.Load_file___s__failed_
push ecx
call fcn.00401cb0
add esp, 0xc
push 1
push 0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x68], esp
push edx
call fcn.00401630
mov ecx, 0x50b7e0
call fcn.0040b710
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, edi
call fcn.00422fa0
lea ecx, [esp + 0x40]
call fcn.00401480
lea ecx, [esp + 0x1c]
call fcn.00401480
lea ecx, [esp + 0x48]
call fcn.00401480
lea ecx, [esp + 0x50]
call fcn.00401480
lea ecx, [esp + 0x38]
call fcn.00401480
lea ecx, [esp + 0x28]
call fcn.00401480
lea ecx, [esp + 0x60]
mov byte [esp + 0x308], 4
call fcn.0046e87c
lea ecx, [esp + 0x18]
call fcn.00401480
lea ecx, [esp + 0x2c]
call fcn.00401480
lea ecx, [esp + 0x44]
call fcn.00401480
lea ecx, [esp + 0x14]
call fcn.00401480
jmp 0x42b8e5
push 0x80070057
call fcn.00401150
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x2464]
neg eax
sbb eax, eax
xor ebx, ebx
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x42ba70
mov edi, dword [esp + 0x4c]
call fcn.0046c2c1
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x42b900
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esi + 0x2458]
mov byte [esp + 0x314], 0x15
mov dword [esp + 0x40], ebx
call fcn.00447870
mov eax, dword [esp + 0x34]
cmp eax, edi
jne 0x42bad5
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x308], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ba66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x20], ebx
jne 0x42b9e8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x308], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ba98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x13]
mov dword [esp + 0x308], 0xffffffff
call fcn.00418aa0
mov eax, 1
mov ecx, dword [esp + 0x300]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.004945a7
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x28]
push ecx
push eax
push esi
lea edx, [esp + 0x20]
push str.Block_Page___s__only_have__d_image_files._nIt_must_be_equal_to__d.
push edx
call fcn.00401cb0
mov eax, dword [esp + 0x28]
add esp, 0x14
push 1
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x68], esp
mov edi, esp
push eax
call fcn.00401560
add eax, 0x10
add esp, 4
mov ecx, 0x50b7e0
mov dword [edi], eax
call fcn.0040b710
mov ecx, dword [esp + 0x24]
call fcn.00422fa0
lea eax, [esi - 0x10]
jmp 0x42b89c