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

Disassembly:
push 0xffffffffffffffff
push 0x4b880b
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x50a360]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50a360]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [esp + 0x300]
push 0xffffffffffffffff
xor ebp, ebp
push ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], ecx
call fcn.0046e6d1
mov eax, dword [edi + 0x308]
mov ebx, dword [eax + 0x20c]
mov esi, dword [eax + 0x208]
push 0xa
lea ecx, [esp + 0x84]
mov dword [esp + 0x7c], ebx
call fcn.00415e10
push 0x4ef7cc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2fc], ebp
call fcn.00402560
cmp ebx, ebp
mov byte [esp + 0x2f8], 1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x48], ebp
jle 0x44118e
lea ebx, [esi + 0xbf1]
mov dword [esp + 0x40], ebx
lea eax, [ebx - 0x9e9]
push eax
lea ecx, [esp + 0x48]
call fcn.00402560
lea ecx, [ebx - 0xbf1]
push ecx
lea ecx, [esp + 0x40]
mov byte [esp + 0x2fc], 2
call fcn.00402560
push 1
push ebp
lea edx, [esp + 0x28]
lea esi, [edi + 0x140]
push edx
mov ecx, esi
mov byte [esp + 0x304], 3
call fcn.0046f422
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
mov byte [esp + 0x2f8], 4
je 0x440fad
push ebp
mov ecx, esi
call fcn.0046f5b5
test eax, eax
je 0x440fad
cmp byte [ebx], 1
jne 0x440fad
lea ecx, [esp + 0x54]
call fcn.0046e650
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x54]
push ecx
push edx
mov byte [esp + 0x300], 5
call fcn.004591c0
add esp, 8
cmp dword [esp + 0x5c], 1
jle 0x44104f
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00401560
lea edi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x24], edi
cmp dword [edi - 0xc], 0
mov byte [esp + 0x2f8], 6
jl 0x441054
push 0x4c7508
push edi
call fcn.00495b82
add esp, 8
test eax, eax
je 0x441054
sub eax, edi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
je 0x441054
inc dword [esp + 0x1c]
cmp dword [esp + 0x5c], 2
jle 0x44104f
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx + 8]
sub eax, 0x10
push eax
call fcn.00401560
lea ebx, [eax + 0x10]
add esp, 4
mov dword [esp + 0x6c], ebx
push esi
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x300], 7
call fcn.00401a30
mov byte [esp + 0x2f8], 8
call fcn.0046c2c1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x44117a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x38], eax
cmp dword [esp + 0x5c], 0
mov byte [esp + 0x2f8], 9
jle 0x44104f
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x58]
mov eax, dword [edx]
push ebx
push ecx
push eax
lea ecx, [esp + 0x44]
push str._s_s_b_s
push ecx
call fcn.00401cb0
push 0x24c
lea edx, [esp + 0xb8]
push 0
push edx
mov dword [esp + 0xbc], 0
call fcn.00494750
mov ecx, dword [esp + 0x58]
add esp, 0x20
lea eax, [esp + 0x9c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x50], eax
mov ebp, 1
cmp eax, 0xffffffff
je 0x440f04
test ebp, ebp
je 0x440ef5
lea edx, [esp + 0xc8]
push edx
lea ecx, [esp + 0x78]
call fcn.00402560
mov esi, eax
lea eax, [esp + 0xc8]
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x2fc], 0xa
call fcn.00402560
mov ecx, dword [esi]
mov edx, dword [ecx - 0xc]
sub edx, dword [ebx - 0xc]
mov ecx, eax
push edx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x300], 0xb
call fcn.00401a30
mov eax, dword [esp + 0x7c]
add eax, 0xfffffff0
mov byte [esp + 0x2f8], 0xd
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440c92
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x74]
add eax, 0xfffffff0
mov byte [esp + 0x2f8], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440cba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 0xc]
mov edx, dword [esp + 0x34]
sub eax, dword [edx - 0xc]
lea ecx, [esp + 0x14]
push eax
lea eax, [esp + 0x74]
push eax
call fcn.004019b0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2fc], 0xf
call fcn.00401bf0
mov eax, dword [esp + 0x70]
add eax, 0xfffffff0
mov byte [esp + 0x2f8], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440d11
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.0043b330
test eax, eax
je 0x440d76
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
lea eax, [esp + 0x74]
push eax
call fcn.004598e0
add esp, 0x10
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2fc], 0x10
call fcn.00401bf0
mov eax, dword [esp + 0x68]
add eax, 0xfffffff0
mov byte [esp + 0x2f8], 0xe
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440d76
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 0x44117a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x5c], 0
mov byte [esp + 0x2f8], 0x11
jle 0x44104f
mov ecx, dword [esp + 0x58]
mov eax, dword [ecx]
lea edx, [esp + 0xc8]
push edx
push eax
lea eax, [esp + 0x34]
push str._s_s
push eax
call fcn.00401cb0
mov ecx, dword [esp + 0x30]
xor eax, eax
add esp, 0x10
test ecx, ecx
setne al
test eax, eax
je 0x44117a
push ecx
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00495a5d
add esp, 8
test eax, eax
je 0x440e05
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + 8]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.0046e9cb
mov esi, dword [esp + 0x14]
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 0x440e2b
push edi
lea ecx, [esp + 0x18]
call fcn.00401510
mov esi, dword [esp + 0x14]
lea eax, [edi + 1]
push eax
push esi
call fcn.004969d8
add esp, 8
test edi, edi
jl 0x441184
cmp edi, dword [esi - 8]
jg 0x441184
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x9c]
push edx
xor ecx, ecx
mov dword [esi - 0xc], edi
push eax
mov word [esi + edi*2], cx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [esp + 0x4c]
push ecx
push esi
lea ecx, [esp + 0x88]
mov ebp, eax
mov dword [esp + 0x54], 0
call fcn.00417d70
test eax, eax
je 0x440e8c
mov edi, dword [esp + 0x4c]
inc edi
jmp 0x440e91
mov edi, 1
push esi
lea ecx, [esp + 0x84]
call fcn.0043ef90
mov dword [eax], edi
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x2f8], 0xe
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440ec8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [esp + 0x2f8], 9
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440c16
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x440c16
mov ecx, dword [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
mov byte [esp + 0x2f8], 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440f2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x2f8], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440f54
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x2f8], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440f78
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x2f8], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440f9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x2f8], 4
call fcn.0046e87c
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2f8], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440fd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2f8], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x440ffd
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 + 0x2f8], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x441025
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x48]
add dword [esp + 0x40], 0xbf4
inc eax
cmp eax, dword [esp + 0x78]
mov dword [esp + 0x48], eax
jge 0x44118e
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x28]
mov ebp, eax
jmp 0x440a41
call fcn.00464489
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
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 + 0x24]
add esp, 0xc
push 0
push 0
push eax
call fcn.0046cf28
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
call fcn.0046e6d1
lea eax, [edi - 0x10]
mov byte [esp + 0x2f8], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4410aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x2f8], 4
call fcn.0046e87c
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x2f8], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4410e3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x2f8], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44110b
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 + 0x2f8], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x441133
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x2f8], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44115b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x2f8], 0xffffffff
call fcn.00418d70
or eax, 0xffffffff
jmp 0x441278
push 0x80004005
call fcn.00401150
push 0x80070057
call fcn.00401150
mov eax, dword [esp + 0x8c]
neg eax
sbb eax, eax
mov dword [esp + 0x24], eax
je 0x441230
mov esi, dword [esp + 0x1c]
mov bl, 0x12
xor edi, edi
jmp 0x4411b0
call fcn.0046c2c1
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x44117a
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x304], bl
mov dword [esp + 0x34], edi
call fcn.00447870
mov eax, dword [esp + 0x28]
cmp eax, esi
jne 0x4412a2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x2f8], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44122a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], edi
jne 0x4411b0
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov esi, dword [ecx + 8]
add eax, 0xfffffff0
mov byte [esp + 0x2f8], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44125f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x80]
mov dword [esp + 0x2f8], 0xffffffff
call fcn.00418d70
mov eax, esi
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.004945a7
add esp, 0x2e8
ret 4
push esi
mov esi, dword [esp + 0x20]
push eax
push esi
lea ecx, [esp + 0x24]
push str.Block_Page___s__only_have__d_image_files._nIt_must_be_equal_to__d.
push ecx
call fcn.00401cb0
mov edx, dword [esp + 0x2c]
add esp, 0x14
push 1
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x78], esp
push edx
call fcn.00402560
mov ecx, 0x50b7e0
call fcn.0040b710
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push edi
call fcn.0046e6d1
lea eax, [esi - 0x10]
jmp 0x441112