Function at 0x4070f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4554e6
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x478584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x264], edi
mov edx, dword [0x47839c]
mov dword [ebp - 0x280], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x47839c
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x284], ebx
call eax
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x280]
push ecx
lea edx, [ebp - 0x288]
push ebx
mov esi, 1
push edx
mov dword [ebp - 0x264], esi
call fcn.00402210
mov dword [ebp - 4], 2
push 0x45e6a0
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.004022d0
add esp, 0x18
mov byte [ebp - 4], 3
mov eax, dword [eax]
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x278], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4071d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x288]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4071fe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 0xffffffff
je 0x407550
cmp esi, edi
je 0x407550
mov edx, dword [0x47839c]
mov eax, dword [edx + 0xc]
mov ecx, 0x47839c
call eax
add eax, 0x10
mov dword [ebp - 0x270], eax
mov dword [ebp - 4], 6
mov ecx, 0x45e6a8
test ecx, 0xffff0000
jne 0x40725e
mov edx, ecx
movzx esi, dx
push edi
push esi
call fcn.004045f0
add esp, 8
cmp eax, edi
je 0x407270
push esi
push eax
lea ecx, [ebp - 0x270]
call fcn.00404960
jmp 0x407270
push 1
push 0x45e6a8
lea ecx, [ebp - 0x270]
call fcn.004019a0
mov dword [ebp - 4], 7
or dword [ebp - 0x264], 2
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x234]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4072b6
cmp dx, di
je 0x4072b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4072b6
add eax, 4
add ecx, 4
cmp dx, di
jne 0x407290
xor eax, eax
jmp 0x4072bb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
setne al
test al, al
je 0x407379
mov eax, dword [0x47839c]
mov edx, dword [eax + 0xc]
mov ecx, 0x47839c
call edx
add eax, 0x10
mov dword [ebp - 0x26c], eax
mov dword [ebp - 4], 8
mov eax, 0x45ea40
test eax, 0xffff0000
jne 0x407315
mov ecx, eax
movzx esi, cx
push edi
push esi
call fcn.004045f0
add esp, 8
cmp eax, edi
je 0x407327
push esi
push eax
lea ecx, [ebp - 0x26c]
call fcn.00404960
jmp 0x407327
push 2
push 0x45ea40
lea ecx, [ebp - 0x26c]
call fcn.004019a0
mov dword [ebp - 4], 9
or dword [ebp - 0x264], 4
mov eax, dword [ebp - 0x26c]
lea ecx, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407367
cmp dx, di
je 0x407363
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407367
add eax, 4
add ecx, 4
cmp dx, di
jne 0x407341
xor eax, eax
jmp 0x40736c
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
setne al
test al, al
je 0x407379
mov bl, 1
jmp 0x40737b
xor bl, bl
mov eax, 7
mov dword [ebp - 4], eax
test byte [ebp - 0x264], 4
je 0x4073b8
and dword [ebp - 0x264], 0xfffffffb
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4073b8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
test byte [ebp - 0x264], 2
je 0x4073f0
and dword [ebp - 0x264], 0xfffffffd
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x270]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4073f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4074bf
mov ecx, dword [ebp - 0x280]
mov edx, dword [ebp - 0x284]
push ecx
push edx
lea eax, [ebp - 0x268]
push eax
call fcn.00402210
add esp, 0xc
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x407425
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x268]
call fcn.004018e0
push str.lp.kunlun.comkunlun_2005.sol
lea edx, [ebp - 0x268]
push edx
lea eax, [ebp - 0x274]
push eax
call fcn.004022d0
mov byte [ebp - 4], 0xd
mov eax, dword [eax]
push eax
call fcn.004351b0
add esp, 0x10
mov bl, al
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407496
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4074da
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4074bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x260]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
jmp 0x407207
push str.lp.kunlun.comkunlun_2005.sol
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x274]
push ecx
call fcn.004022d0
add esp, 0xc
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x27c]
push eax
call fcn.00401f40
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40752b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407550
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x278]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dfbe
mov esp, ebp
pop ebp
ret