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

Disassembly:
push 0xffffffffffffffff
push 0x50c217
mov eax, dword fs:[0]
push eax
sub esp, 0xbfc
mov eax, dword [0x53f5a0]
xor eax, esp
mov dword [esp + 0xbf8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f5a0]
xor eax, esp
push eax
lea eax, [esp + 0xc10]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc28]
mov edi, dword [esp + 0xc20]
mov ebp, dword [esp + 0xc24]
mov esi, dword [esp + 0xc2c]
xor ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], esi
cmp eax, ebx
je 0x40d3db
cmp ebp, ebx
je 0x40d3db
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40ceb6
sub eax, edx
sar eax, 1
je 0x40d3db
cmp esi, ebx
je 0x40d3db
push ebp
lea ecx, [esp + 0x98]
call fcn.00439010
push 0x7fe
lea ecx, [esp + 0x412]
xor eax, eax
push ebx
mov dword [esp + 0xc20], ebx
push ecx
mov word [esp + 0x418], ax
call fcn.004d3360
add esp, 0xc
cmp byte [esp + 0x1b0], 0
lea eax, [esp + 0xa0]
jne 0x40cf1f
mov eax, dword [esp + 0x9c]
add eax, 4
push 0x54ae40
push eax
call fcn.004cc568
add esp, 8
test eax, eax
je 0x40cf51
push str._tstat_Fail
mov ecx, edi
call fcn.00402790
lea ecx, [esp + 0x94]
call fcn.00439080
jmp 0x40d3f6
mov edx, 0x4000
test word [0x54ae46], dx
jne 0x40cf7c
push str._S_IFDIR_Fail
mov ecx, edi
call fcn.00402790
lea ecx, [esp + 0x94]
call fcn.00439080
jmp 0x40d3f6
lea eax, [esp + 0x94]
call fcn.00439670
push eax
push str._s.
lea edx, [esp + 0x414]
call fcn.004023b0
add esp, 8
push 0x54abf0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x40cfd6
push str.INVALID_HANDLE_VALUE__hHandle
mov ecx, edi
call fcn.00402790
lea ecx, [esp + 0x94]
call fcn.00439080
jmp 0x40d3f6
mov byte [esp + 0x17], 1
xor ebp, ebp
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], fcn.004cc39d
mov dword [esp + 0x50], fcn.004ce4c2
mov dword [esp + 0x54], fcn.004cc2c0
mov byte [esp + 0xc18], 1
lea ecx, [ecx]
mov ecx, 0x51f1cc
mov eax, 0x54ac1c
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d046
cmp dx, bx
je 0x40d042
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d046
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40d020
xor eax, eax
jmp 0x40d04b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40d258
mov ecx, 0x51f1d0
mov eax, 0x54ac1c
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d086
cmp dx, bx
je 0x40d082
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d086
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x40d060
xor eax, eax
jmp 0x40d08b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40d258
push 0x54ac1c
lea ecx, [esp + 0x1c0]
call fcn.00439010
mov byte [esp + 0xc18], 2
mov eax, dword [esp + 0x1c0]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cf7ac
mov esi, eax
mov eax, dword [esp + 0x1c4]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push ebx
push esi
mov dword [esp + 0x30], esi
call fcn.004d3360
mov ecx, dword [esp + 0x1cc]
add esp, 0xc
push ecx
lea eax, [esp + 0x1c0]
call fcn.00439670
push eax
inc ecx
push ecx
push esi
call fcn.004ce857
add esp, 0x10
lea edx, [esp + 0x24]
push edx
lea esi, [esp + 0x40]
call fcn.0042ead0
cmp ebp, ebx
jne 0x40d244
lea eax, [esp + 0x58]
push eax
mov ebp, 1
call fcn.0044de70
mov ecx, dword [esp + 0x28]
push ecx
lea ecx, [esp + 0x2e8]
call fcn.00439010
push 0x51f14c
push 0x51f1f4
lea edx, [esp + 0x2ec]
mov byte [esp + 0xc20], 4
call fcn.00439710
push 0x54ac1c
push 0x51f1f4
lea edx, [esp + 0x2f4]
call fcn.00439710
add esp, 0x10
push 0x520e78
lea ecx, [esp + 0x2e8]
mov dword [esp + 0x1c], ebx
call fcn.00439650
push eax
lea edx, [esp + 0x20]
push edx
call fcn.004ce7c5
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, ebx
je 0x40d272
push 2
push ebx
push eax
call fcn.004d068b
mov eax, dword [esp + 0x24]
add esp, 0xc
push eax
call fcn.004d0593
mov ecx, dword [esp + 0x1c]
add esp, 4
push ebx
push ebx
push ecx
mov esi, eax
call fcn.004d068b
add esp, 0xc
push esi
call fcn.004cf7ac
mov edx, dword [esp + 0x1c]
add esp, 4
push edx
push esi
push ebp
mov edi, eax
push esi
push edi
call fcn.004d0333
mov eax, dword [esp + 0x2c]
add esp, 0x14
push eax
call fcn.004cf613
add esp, 4
push 0x54ac1c
mov ebx, esi
lea eax, [esp + 0x5c]
call fcn.0044e900
push edi
test al, al
je 0x40d2a2
call fcn.004cf7a1
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x78]
mov dword [edx], ecx
mov ecx, dword [esp + 0x20]
mov dword [ecx], eax
add esp, 4
lea ecx, [esp + 0x2e4]
call fcn.00439080
lea ecx, [esp + 0x58]
call fcn.0044df20
xor ebx, ebx
lea ecx, [esp + 0x1bc]
mov byte [esp + 0xc18], 1
call fcn.00439080
mov edx, dword [esp + 0x2c]
push 0x54abf0
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d010
jmp 0x40d2da
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x17], 0
call fcn.00439080
lea ecx, [esp + 0x58]
call fcn.0044df20
lea ecx, [esp + 0x1bc]
mov byte [esp + 0xc18], 1
call fcn.00439080
jmp 0x40d2da
call fcn.004cf7a1
add esp, 4
lea ecx, [esp + 0x2e4]
mov byte [esp + 0x17], 0
call fcn.00439080
lea ecx, [esp + 0x58]
call fcn.0044df20
lea ecx, [esp + 0x1bc]
mov byte [esp + 0xc18], 1
call fcn.00439080
xor ebx, ebx
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x17], 0
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
je 0x40d34d
xor esi, esi
cmp ebp, ebx
jle 0x40d34d
lea ebx, [ebx]
mov edx, dword [edi + esi*4]
cmp edx, ebx
je 0x40d33f
mov eax, edx
lea ebx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d310
sub eax, ebx
sar eax, 1
je 0x40d33d
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x3c]
call fcn.0040ca10
test al, al
je 0x40d346
xor ebx, ebx
inc esi
cmp esi, ebp
jl 0x40d300
jmp 0x40d34d
mov byte [esp + 0x17], 0
xor ebx, ebx
xor esi, esi
cmp ebp, ebx
jle 0x40d368
mov eax, dword [edi + esi*4]
cmp eax, ebx
je 0x40d363
push eax
call fcn.004cf7a1
add esp, 4
inc esi
cmp esi, ebp
jl 0x40d353
mov esi, dword [esp + 0x54]
cmp edi, ebx
je 0x40d37c
push edi
call esi
add esp, 4
xor edi, edi
mov dword [esp + 0x3c], edi
cmp byte [esp + 0x17], 0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
jne 0x40d3b9
mov ecx, dword [esp + 0x20]
push str.CheckIsQQFile_Fail
call fcn.00402790
mov byte [esp + 0xc18], 0
cmp edi, ebx
je 0x40d3ab
push edi
call esi
add esp, 4
lea ecx, [esp + 0x94]
call fcn.00439080
jmp 0x40d3f6
mov byte [esp + 0xc18], 0
cmp edi, ebx
je 0x40d3cb
push edi
call esi
add esp, 4
lea ecx, [esp + 0x94]
call fcn.00439080
mov al, 1
jmp 0x40d3f8
mov ecx, edi
call fcn.00438300
push str.p_pPkgContent
push 0x51f1f4
mov edx, eax
call fcn.00439710
add esp, 8
xor al, al
mov ecx, dword [esp + 0xc10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xbf8]
xor ecx, esp
call fcn.004cc2b1
add esp, 0xc08
ret 0x10