Function at 0x413390
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4828e0
mov eax, dword fs:[0]
push eax
mov eax, 0x18e0
call fcn.0044e820
mov eax, dword [0x49e058]
xor eax, esp
mov dword [esp + 0x18dc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49e058]
xor eax, esp
push eax
lea eax, [esp + 0x18f4]
mov dword fs:[0], eax
lea eax, [ecx + 4]
xor ebx, ebx
cmp dword [eax], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
je 0x4133e7
mov al, 1
jmp 0x41410e
push ebx
push 0x48b16b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.004049b0
push 0xb68
lea eax, [esp + 0x544]
push ebx
push eax
mov dword [esp + 0x1908], ebx
call fcn.0044dd90
mov eax, 0x10
lea ecx, [esp + 0x24]
mov esi, 4
push ecx
mov dword [esp + 0x556], 0xa
mov dword [esp + 0x55a], 0x7d0
mov dword [esp + 0x55e], esi
mov dword [esp + 0x10b0], eax
mov dword [esp + 0x10ac], eax
mov byte [esp + 0x10b7], bl
mov dword [esp + 0x566], 0x1000
call fcn.004239d0
add esp, 0x10
mov ecx, dword [eax]
mov byte [esp + 0x18fc], 1
call fcn.00422310
mov word [esp + 0x544], ax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x18fc], bl
je 0x4134ce
mov edi, eax
add eax, esi
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x4134ce
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4134ce
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
push 0x34
lea ecx, [esp + 0x104]
push ebx
push ecx
call fcn.0044dd90
mov edi, 5
mov ebp, 0x1e
mov dword [esp + 0x10c], 0xa
mov dword [esp + 0x110], 0x4e20
mov dword [esp + 0x114], edi
mov dword [esp + 0x118], ebp
mov byte [esp + 0x11c], bl
mov byte [esp + 0x11d], bl
mov byte [esp + 0x11e], bl
mov dword [esp + 0xec], 0xf
mov dword [esp + 0xe8], ebx
mov byte [esp + 0xd8], bl
push 0xc
lea edx, [esp + 0x786]
push str.pdlxf.qq.com
push edx
mov byte [esp + 0x1914], 2
mov dword [esp + 0x562], 0x5dc
mov dword [esp + 0x566], esi
call fcn.0044f4b0
push 0x12
lea eax, [esp + 0x894]
push str.fs_tcp_conn.qq.com
push eax
mov byte [esp + 0x7a6], bl
call fcn.0044f4b0
push 0xb
lea ecx, [esp + 0x9a3]
push str.stun.qq.com
mov esi, 0x1bb
push ecx
mov byte [esp + 0x8ba], bl
mov word [esp + 0x8a6], 0x1f40
mov word [esp + 0x9a8], si
call fcn.0044f4b0
push 0x12
lea edx, [esp + 0xab1]
push str.xuanfengnet.qq.com
push edx
mov byte [esp + 0x9c2], bl
mov word [esp + 0xab7], 0x1f40
call fcn.0044f4b0
push 0x12
lea eax, [esp + 0xbbf]
push str.xuanfengnet.qq.com
push eax
mov byte [esp + 0xad7], bl
mov word [esp + 0xbc5], 0x1f40
call fcn.0044f4b0
add esp, 0x48
push 0xf
lea ecx, [esp + 0xc85]
push str.fs_hello.qq.com
push ecx
mov byte [esp + 0xb9d], bl
mov word [esp + 0xc8b], 0x50
call fcn.0044f4b0
push 0xe
lea edx, [esp + 0xd95]
push str.fs_conn.qq.com
push edx
mov byte [esp + 0xca8], bl
mov word [esp + 0xd99], 0x1f40
mov word [esp + 0xd9b], si
call fcn.0044f4b0
push 0xd
lea eax, [esp + 0xea3]
push str.fs_h2u.qq.com
push eax
mov byte [esp + 0xdb7], bl
mov word [esp + 0xea9], si
call fcn.0044f4b0
mov byte [esp + 0xeb8], bl
mov word [esp + 0xfab], si
push 0x10
lea ecx, [esp + 0xfb1]
push str.fs_report.qq.com
push ecx
call fcn.0044f4b0
add esp, 0x30
push 0xa
push 0x48bc4c
lea ecx, [esp + 0x60]
mov byte [esp + 0xfa1], bl
mov word [esp + 0x1091], si
mov dword [esp + 0x10c], 0x1388
mov dword [esp + 0x110], edi
mov dword [esp + 0x114], ebp
mov dword [esp + 0x78], 0xf
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.004049b0
lea edx, [esp + 0x90]
push ebx
push edx
mov byte [esp + 0x1904], 3
call fcn.0042e210
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0x1908], 4
call fcn.0042e100
push str.qqdownload_config.xml
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0xc0]
push edx
call fcn.00411dd0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x104]
push edx
mov byte [esp + 0x1920], 5
call fcn.00411e90
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x1908], 6
call fcn.004048d0
cmp dword [esp + 0xfc], 0x10
mov byte [esp + 0x18fc], 5
jb 0x413786
mov eax, dword [esp + 0xe8]
push eax
call fcn.0044d7d9
add esp, 4
lea ecx, [esp + 0x284]
call fcn.00404570
mov edx, dword [esp + 0xb0]
mov ebp, 0x10
cmp dword [esp + 0xc4], ebp
mov byte [esp + 0x18fc], 7
mov byte [esp + 0x17], 1
jae 0x4137bb
lea edx, [esp + 0xb0]
sub esp, 0x1c
mov esi, esp
mov eax, edx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov dword [esp + 0x34], esp
mov byte [esi + 4], bl
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4137d6
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.004049b0
lea ecx, [esp + 0x2a0]
call fcn.00406d00
cmp al, bl
je 0x413888
lea ecx, [esp + 0x2d4]
push ecx
call fcn.0042e100
lea edx, [esp + 0x2f4]
push edx
lea eax, [esp + 0x2dc]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00411e90
add esp, 0x10
cmp dword [esp + 0x54], ebp
mov eax, dword [esp + 0x40]
mov byte [esp + 0x18fc], 8
jae 0x413840
lea eax, [esp + 0x40]
jmp 0x413844
cmp eax, ebx
je 0x41386d
cmp byte [eax], bl
je 0x41386d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41386d
test al, 0x10
jne 0x41386d
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x64]
call fcn.004048d0
mov byte [esp + 0x17], bl
cmp dword [esp + 0x54], ebp
mov byte [esp + 0x18fc], 7
jb 0x413888
mov eax, dword [esp + 0x40]
push eax
call fcn.0044d7d9
add esp, 4
cmp dword [esp + 0x70], ebp
mov eax, dword [esp + 0x5c]
jae 0x413896
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x10ac]
call fcn.00429380
lea ecx, [esp + 0x14e8]
push ecx
lea ecx, [esp + 0x10ac]
mov byte [esp + 0x1900], 9
mov word [esp + 0x14ec], bx
mov dword [esp + 0x14ee], ebx
mov word [esp + 0x14f2], bx
call fcn.00428f60
movzx edx, word [esp + 0x14ec]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x5c]
add edx, 0x3e8
cmp dword [esp + 0x70], ebp
mov dword [esi + 0x34], edx
jae 0x4138f9
lea eax, [esp + 0x5c]
mov edi, dword [esp + 0x20]
push 1
push ebx
push edi
push 0x48bb98
push 0x48bbb8
push ebx
push eax
lea eax, [esi + 8]
push eax
call fcn.00449020
add esp, 0x20
cmp eax, ebx
jl 0x414136
cmp dword [edi], ebx
je 0x414136
push 0x400
lea ecx, [esp + 0x14f4]
push ebx
push ecx
call fcn.0044dd90
lea edx, [esp + 0x14fc]
push ebx
push edx
call fcn.00448f70
add esp, 0x14
lea eax, [esp + 0x14f0]
push eax
lea ecx, [esp + 0x138]
call fcn.00404c40
cmp dword [esp + 0x148], ebx
mov byte [esp + 0x18fc], 0xa
je 0x413a48
lea ecx, [esp + 0x134]
push ecx
call fcn.0042e100
push str.TNProxy.dll
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00411dd0
add esp, 0x10
cmp dword [esp + 0x54], ebp
mov eax, dword [esp + 0x40]
mov byte [esp + 0x18fc], 0xb
jae 0x4139b3
lea eax, [esp + 0x40]
push eax
call fcn.00411710
add esp, 4
test al, al
je 0x413a37
push 0x118
lea ecx, [esp + 0x170]
push ebx
push ecx
call fcn.0044dd90
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x54], ebp
mov dword [esp + 0x270], 3
jae 0x4139ef
lea eax, [esp + 0x40]
mov edx, dword [esp + 0x50]
push edx
push eax
lea eax, [esp + 0x174]
push eax
call fcn.0044dff0
mov eax, dword [edi]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [esp + 0x16c]
push edx
push eax
mov eax, dword [ecx + 0xfc]
call eax
sub esp, 0x1c
lea edx, [esp + 0x58]
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.00404a80
mov ecx, 0x4a0771
call fcn.00411ce0
lea ecx, [esp + 0x3c]
mov byte [esp + 0x18fc], 0xa
call fcn.0041ce20
push ebx
call fcn.0044f46b
push eax
call fcn.0044e355
mov ax, word [esi + 0x34]
add esp, 8
mov word [esp + 0x10a5], ax
mov byte [esp + 0x10a7], bl
mov dword [esp + 0x770], ebx
call fcn.0044e362
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [esp + 0x76a], ebx
add edx, 0x7530
mov word [esp + 0x774], dx
call fcn.0044e362
cdq
mov ecx, 0x3e8
idiv ecx
mov eax, dword [esp + 0x88]
mov dword [esp + 0x552], esi
add edx, 0x1f40
cmp eax, ebx
mov word [esp + 0x76e], dx
je 0x413aef
cmp eax, 0x104
jb 0x413acc
mov eax, 0x104
cmp dword [esp + 0x8c], ebp
mov ecx, dword [esp + 0x78]
jae 0x413add
lea ecx, [esp + 0x78]
push eax
push ecx
lea edx, [esp + 0x56a]
push edx
call fcn.0044f227
add esp, 0xc
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esp + 0x540]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x413b23
mov eax, dword [edi]
mov ecx, dword [eax]
push 0x34
lea edx, [esp + 0x104]
push edx
push eax
mov eax, dword [ecx + 0xc0]
call eax
mov byte [esp + 0x16], 1
jmp 0x413b27
mov byte [esp + 0x16], bl
cmp byte [esp + 0x17], bl
jne 0x413fe7
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x3c]
push ebx
push ecx
mov byte [esp + 0x1904], 0xc
call fcn.0042e210
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x1908], 0xd
call fcn.0042e100
mov edi, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x54], ebp
jae 0x413b73
lea edi, [esp + 0x40]
push 0x104
lea eax, [esp + 0x170]
push ebx
push eax
call fcn.0044dd90
lea eax, [esp + 0x178]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413b93
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413ba5
mov ecx, 0x103
sub eax, esi
sub ecx, edx
cmp ecx, eax
jae 0x413bdb
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413bc5
sub eax, edx
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x413beb
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413be0
sub eax, edx
push eax
lea edx, [esp + 0x170]
push edi
push edx
call fcn.0044f12f
lea eax, [esp + 0x178]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413c07
sub eax, edx
cmp eax, 0x103
jae 0x413c30
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413c23
sub eax, edx
jmp 0x413c35
mov eax, 0x103
mov byte [esp + eax + 0x16c], bl
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413c46
sub eax, edx
mov ecx, 0x103
sub ecx, eax
cmp ecx, 1
jae 0x413c7b
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413c67
sub eax, edx
mov edx, 0x103
sub edx, eax
jmp 0x413c80
mov edx, 1
lea eax, [esp + 0x16c]
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413c90
sub eax, esi
je 0x413d1a
lea eax, [esp + 0x16c]
lea esi, [eax + 1]
jmp 0x413cb0
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413cb0
sub eax, esi
cmp byte [esp + eax + 0x16b], 0x5c
je 0x413d1a
push edx
lea edx, [esp + 0x170]
push 0x48bc24
push edx
call fcn.0044f12f
lea eax, [esp + 0x178]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413ce5
sub eax, edx
cmp eax, 0x103
jae 0x413d0e
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413d01
sub eax, edx
jmp 0x413d13
mov eax, 0x103
mov byte [esp + eax + 0x16c], bl
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413d24
sub eax, edx
mov ecx, 0x103
sub ecx, eax
cmp ecx, 3
jae 0x413d59
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413d45
sub eax, edx
mov ecx, 0x103
sub ecx, eax
jmp 0x413d5e
mov ecx, 3
push ecx
lea edx, [esp + 0x170]
push 0x48bc20
push edx
call fcn.0044f12f
lea eax, [esp + 0x178]
add esp, 0xc
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413d80
sub eax, edx
cmp eax, 0x103
jae 0x413dad
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x413da0
sub eax, edx
jmp 0x413db2
mov eax, 0x103
mov byte [esp + eax + 0x16c], bl
lea eax, [esp + 0x400]
push eax
lea ecx, [esp + 0x170]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x413fb1
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, 0x10
jmp 0x413df0
cmp dword [esp + 0x400], ebp
jne 0x413ecd
lea edx, [esp + 0x42c]
push 0x48bc1c
push edx
call fcn.0044f458
add esp, 8
test eax, eax
je 0x413ecd
lea eax, [esp + 0x42c]
push 0x48bc18
push eax
call fcn.0044f458
add esp, 8
test eax, eax
je 0x413ecd
lea ecx, [esp + 0x42c]
push ecx
lea ecx, [esp + 0xe8]
call fcn.00404c40
push ebx
push str.QD_Core
lea ecx, [esp + 0xec]
mov byte [esp + 0x1904], 0xe
call fcn.00411be0
cmp eax, 0xffffffff
je 0x413eb9
lea edx, [esp + 0xe4]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x158]
push ecx
call fcn.00411e90
lea edx, [esp + 0x15c]
push edx
mov byte [esp + 0x190c], 0xf
call fcn.0042e100
add esp, 0x10
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x30]
call fcn.004132e0
lea ecx, [esp + 0x150]
call fcn.0041ce20
lea ecx, [esp + 0xe4]
mov byte [esp + 0x18fc], 0xd
call fcn.0041ce20
lea ecx, [esp + 0x400]
push ecx
push esi
call edi
test eax, eax
jne 0x413df0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x2d4]
push edx
call fcn.0042e100
add esp, 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call fcn.00411cb0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
call fcn.0040a0d0
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
nop
cmp edi, ebx
je 0x413f2a
cmp edi, dword [esp + 0x24]
je 0x413f2f
call fcn.0044dcd5
cmp esi, ebp
je 0x413fb1
cmp edi, ebx
jne 0x413f40
call fcn.0044dcd5
cmp esi, dword [edi + 8]
jb 0x413f4a
call fcn.0044dcd5
cmp dword [esp + 0x2ec], 0x10
mov eax, dword [esp + 0x2d8]
jae 0x413f62
lea eax, [esp + 0x2d8]
mov edx, dword [esp + 0x2e8]
push edx
push eax
mov eax, dword [esi + 0x14]
push eax
push ebx
mov ecx, esi
call fcn.00403760
test eax, eax
je 0x413f9b
lea ecx, [esp + 0x18]
call fcn.00442330
cmp dword [eax + 0x18], 0x10
jb 0x413f8f
mov eax, dword [eax + 4]
jmp 0x413f92
add eax, 4
push eax
call fcn.0042c7a0
add esp, 4
cmp esi, dword [edi + 8]
jb 0x413fa5
call fcn.0044dcd5
add esi, 0x1c
mov dword [esp + 0x1c], esi
jmp 0x413f20
cmp dword [esp + 0x54], 0x10
jb 0x413fc5
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0044d7d9
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00412cd0
mov edi, dword [esp + 0x20]
mov ebp, 0x10
cmp dword [esp + 0x14c], ebp
mov byte [esp + 0x18fc], 9
jb 0x414008
mov edx, dword [esp + 0x138]
push edx
call fcn.0044d7d9
add esp, 4
cmp byte [esp + 0x16], bl
jne 0x41401e
mov eax, dword [edi]
cmp eax, ebx
je 0x41401e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], ebx
lea ecx, [esp + 0x10a8]
mov byte [esp + 0x18fc], 7
call fcn.00428fd0
lea ecx, [esp + 0x284]
mov byte [esp + 0x18fc], 5
call fcn.00404690
cmp dword [esp + 0xc4], ebp
jb 0x41405f
mov eax, dword [esp + 0xb0]
push eax
call fcn.0044d7d9
add esp, 4
cmp dword [esp + 0xa8], ebp
mov esi, 0xf
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
jb 0x414092
mov ecx, dword [esp + 0x94]
push ecx
call fcn.0044d7d9
add esp, 4
cmp dword [esp + 0x70], ebp
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
jb 0x4140ba
mov edx, dword [esp + 0x5c]
push edx
call fcn.0044d7d9
add esp, 4
cmp dword [esp + 0xe0], ebp
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x4140df
mov eax, dword [esp + 0xcc]
push eax
call fcn.0044d7d9
add esp, 4
cmp dword [esp + 0x8c], ebp
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
jb 0x41410a
mov ecx, dword [esp + 0x78]
push ecx
call fcn.0044d7d9
add esp, 4
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x18f4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18dc]
xor ecx, esp
call fcn.0044d7a0
add esp, 0x18ec
ret
mov byte [esp + 0x16], bl
jmp 0x41400e