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

Disassembly:
push 0xffffffffffffffff
push 0x490c10
mov eax, dword fs:[0]
push eax
mov eax, 0x18e0
call fcn.004614d0
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x18dc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b0650]
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 0x414b77
mov al, 1
jmp 0x41589e
push ebx
push 0x49a44b
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.00404a30
push 0xb68
lea eax, [esp + 0x544]
push ebx
push eax
mov dword [esp + 0x1908], ebx
call fcn.00460a00
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.0042b590
add esp, 0x10
mov ecx, dword [eax]
mov byte [esp + 0x18fc], 1
call fcn.00425530
mov word [esp + 0x544], ax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x18fc], bl
je 0x414c5e
mov edi, eax
add eax, esi
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x414c5e
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 0x414c5e
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.00460a00
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.00462030
push 0x12
lea eax, [esp + 0x894]
push str.fs_tcp_conn.qq.com
push eax
mov byte [esp + 0x7a6], bl
call fcn.00462030
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.00462030
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.00462030
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.00462030
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.00462030
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.00462030
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.00462030
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.00462030
add esp, 0x30
push 0xa
push 0x49b0c8
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.00404a30
lea edx, [esp + 0x90]
push ebx
push edx
mov byte [esp + 0x1904], 3
call fcn.00435df0
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0x1908], 4
call fcn.00435ce0
push str.qqdownload_config.xml
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0xc0]
push edx
call fcn.00409f50
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.00413620
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x1908], 6
call fcn.00404950
cmp dword [esp + 0xfc], 0x10
mov byte [esp + 0x18fc], 5
jb 0x414f16
mov eax, dword [esp + 0xe8]
push eax
call fcn.004604e8
add esp, 4
lea ecx, [esp + 0x284]
call fcn.004045f0
mov edx, dword [esp + 0xb0]
mov ebp, 0x10
cmp dword [esp + 0xc4], ebp
mov byte [esp + 0x18fc], 7
mov byte [esp + 0x17], 1
jae 0x414f4b
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 0x414f66
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00404a30
lea ecx, [esp + 0x2a0]
call fcn.00406d00
cmp al, bl
je 0x415018
lea ecx, [esp + 0x2d4]
push ecx
call fcn.00435ce0
lea edx, [esp + 0x2f4]
push edx
lea eax, [esp + 0x2dc]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00413620
add esp, 0x10
cmp dword [esp + 0x54], ebp
mov eax, dword [esp + 0x40]
mov byte [esp + 0x18fc], 8
jae 0x414fd0
lea eax, [esp + 0x40]
jmp 0x414fd4
cmp eax, ebx
je 0x414ffd
cmp byte [eax], bl
je 0x414ffd
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414ffd
test al, 0x10
jne 0x414ffd
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x64]
call fcn.00404950
mov byte [esp + 0x17], bl
cmp dword [esp + 0x54], ebp
mov byte [esp + 0x18fc], 7
jb 0x415018
mov eax, dword [esp + 0x40]
push eax
call fcn.004604e8
add esp, 4
cmp dword [esp + 0x70], ebp
mov eax, dword [esp + 0x5c]
jae 0x415026
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x10ac]
call fcn.00430ae0
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.004306c0
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 0x415089
lea eax, [esp + 0x5c]
mov edi, dword [esp + 0x20]
push 1
push ebx
push edi
push 0x49b018
push 0x49b038
push ebx
push eax
lea eax, [esi + 8]
push eax
call fcn.00451760
add esp, 0x20
cmp eax, ebx
jl 0x4158c6
cmp dword [edi], ebx
je 0x4158c6
push 0x400
lea ecx, [esp + 0x14f4]
push ebx
push ecx
call fcn.00460a00
lea edx, [esp + 0x14fc]
push ebx
push edx
call fcn.004516b0
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 0x4151d8
lea ecx, [esp + 0x134]
push ecx
call fcn.00435ce0
push str.TNProxy.dll
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00409f50
add esp, 0x10
cmp dword [esp + 0x54], ebp
mov eax, dword [esp + 0x40]
mov byte [esp + 0x18fc], 0xb
jae 0x415143
lea eax, [esp + 0x40]
push eax
call fcn.00412e50
add esp, 4
test al, al
je 0x4151c7
push 0x118
lea ecx, [esp + 0x170]
push ebx
push ecx
call fcn.00460a00
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x54], ebp
mov dword [esp + 0x270], 3
jae 0x41517f
lea eax, [esp + 0x40]
mov edx, dword [esp + 0x50]
push edx
push eax
lea eax, [esp + 0x174]
push eax
call fcn.00460d30
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.00404b00
mov ecx, 0x4b2b5a
call fcn.00413460
lea ecx, [esp + 0x3c]
mov byte [esp + 0x18fc], 0xa
call fcn.00417660
push ebx
call fcn.00461feb
push eax
call fcn.00461095
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.004610a2
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [esp + 0x76a], ebx
add edx, 0x7530
mov word [esp + 0x774], dx
call fcn.004610a2
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 0x41527f
cmp eax, 0x104
jb 0x41525c
mov eax, 0x104
cmp dword [esp + 0x8c], ebp
mov ecx, dword [esp + 0x78]
jae 0x41526d
lea ecx, [esp + 0x78]
push eax
push ecx
lea edx, [esp + 0x56a]
push edx
call fcn.00461da7
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 0x4152b3
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 0x4152b7
mov byte [esp + 0x16], bl
cmp byte [esp + 0x17], bl
jne 0x415777
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.00435df0
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x1908], 0xd
call fcn.00435ce0
mov edi, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x54], ebp
jae 0x415303
lea edi, [esp + 0x40]
push 0x104
lea eax, [esp + 0x170]
push ebx
push eax
call fcn.00460a00
lea eax, [esp + 0x178]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415323
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415335
mov ecx, 0x103
sub eax, esi
sub ecx, edx
cmp ecx, eax
jae 0x41536b
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415355
sub eax, edx
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x41537b
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415370
sub eax, edx
push eax
lea edx, [esp + 0x170]
push edi
push edx
call fcn.00461caf
lea eax, [esp + 0x178]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415397
sub eax, edx
cmp eax, 0x103
jae 0x4153c0
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4153b3
sub eax, edx
jmp 0x4153c5
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 0x4153d6
sub eax, edx
mov ecx, 0x103
sub ecx, eax
cmp ecx, 1
jae 0x41540b
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4153f7
sub eax, edx
mov edx, 0x103
sub edx, eax
jmp 0x415410
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 0x415420
sub eax, esi
je 0x4154aa
lea eax, [esp + 0x16c]
lea esi, [eax + 1]
jmp 0x415440
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415440
sub eax, esi
cmp byte [esp + eax + 0x16b], 0x5c
je 0x4154aa
push edx
lea edx, [esp + 0x170]
push 0x49a4f0
push edx
call fcn.00461caf
lea eax, [esp + 0x178]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415475
sub eax, edx
cmp eax, 0x103
jae 0x41549e
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415491
sub eax, edx
jmp 0x4154a3
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 0x4154b4
sub eax, edx
mov ecx, 0x103
sub ecx, eax
cmp ecx, 3
jae 0x4154e9
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4154d5
sub eax, edx
mov ecx, 0x103
sub ecx, eax
jmp 0x4154ee
mov ecx, 3
push ecx
lea edx, [esp + 0x170]
push 0x49b0a0
push edx
call fcn.00461caf
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 0x415510
sub eax, edx
cmp eax, 0x103
jae 0x41553d
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415530
sub eax, edx
jmp 0x415542
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 0x415741
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, 0x10
jmp 0x415580
cmp dword [esp + 0x400], ebp
jne 0x41565d
lea edx, [esp + 0x42c]
push 0x49b09c
push edx
call fcn.00461fd8
add esp, 8
test eax, eax
je 0x41565d
lea eax, [esp + 0x42c]
push 0x49b098
push eax
call fcn.00461fd8
add esp, 8
test eax, eax
je 0x41565d
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.00413390
cmp eax, 0xffffffff
je 0x415649
lea edx, [esp + 0xe4]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x158]
push ecx
call fcn.00413620
lea edx, [esp + 0x15c]
push edx
mov byte [esp + 0x190c], 0xf
call fcn.00435ce0
add esp, 0x10
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x30]
call fcn.004149c0
lea ecx, [esp + 0x150]
call fcn.00417660
lea ecx, [esp + 0xe4]
mov byte [esp + 0x18fc], 0xd
call fcn.00417660
lea ecx, [esp + 0x400]
push ecx
push esi
call edi
test eax, eax
jne 0x415580
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x2d4]
push edx
call fcn.00435ce0
add esp, 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call fcn.0044a8b0
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
call fcn.0044a8e0
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
nop
cmp edi, ebx
je 0x4156ba
cmp edi, dword [esp + 0x24]
je 0x4156bf
call fcn.00460956
cmp esi, ebp
je 0x415741
cmp edi, ebx
jne 0x4156d0
call fcn.00460956
cmp esi, dword [edi + 8]
jb 0x4156da
call fcn.00460956
cmp dword [esp + 0x2ec], 0x10
mov eax, dword [esp + 0x2d8]
jae 0x4156f2
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.004037c0
test eax, eax
je 0x41572b
lea ecx, [esp + 0x18]
call fcn.0044a3f0
cmp dword [eax + 0x18], 0x10
jb 0x41571f
mov eax, dword [eax + 4]
jmp 0x415722
add eax, 4
push eax
call fcn.00433ef0
add esp, 4
cmp esi, dword [edi + 8]
jb 0x415735
call fcn.00460956
add esi, 0x1c
mov dword [esp + 0x1c], esi
jmp 0x4156b0
cmp dword [esp + 0x54], 0x10
jb 0x415755
mov ecx, dword [esp + 0x40]
push ecx
call fcn.004604e8
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.004144c0
mov edi, dword [esp + 0x20]
mov ebp, 0x10
cmp dword [esp + 0x14c], ebp
mov byte [esp + 0x18fc], 9
jb 0x415798
mov edx, dword [esp + 0x138]
push edx
call fcn.004604e8
add esp, 4
cmp byte [esp + 0x16], bl
jne 0x4157ae
mov eax, dword [edi]
cmp eax, ebx
je 0x4157ae
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.00430730
lea ecx, [esp + 0x284]
mov byte [esp + 0x18fc], 5
call fcn.00404710
cmp dword [esp + 0xc4], ebp
jb 0x4157ef
mov eax, dword [esp + 0xb0]
push eax
call fcn.004604e8
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 0x415822
mov ecx, dword [esp + 0x94]
push ecx
call fcn.004604e8
add esp, 4
cmp dword [esp + 0x70], ebp
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
jb 0x41584a
mov edx, dword [esp + 0x5c]
push edx
call fcn.004604e8
add esp, 4
cmp dword [esp + 0xe0], ebp
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x41586f
mov eax, dword [esp + 0xcc]
push eax
call fcn.004604e8
add esp, 4
cmp dword [esp + 0x8c], ebp
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
jb 0x41589a
mov ecx, dword [esp + 0x78]
push ecx
call fcn.004604e8
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.004604af
add esp, 0x18ec
ret
mov byte [esp + 0x16], bl
jmp 0x41579e