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

Disassembly:
push 0xffffffffffffffff
push 0x4908d0
mov eax, dword fs:[0]
push eax
mov eax, 0x18e0
call fcn.00461220
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 0x414ac7
mov al, 1
jmp 0x4157ee
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.00404950
push 0xb68
lea eax, [esp + 0x544]
push ebx
push eax
mov dword [esp + 0x1908], ebx
call fcn.00460750
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.0042b8d0
add esp, 0x10
mov ecx, dword [eax]
mov byte [esp + 0x18fc], 1
call fcn.004254f0
mov word [esp + 0x544], ax
mov eax, dword [esp + 0x1c]
cmp eax, ebx
mov byte [esp + 0x18fc], bl
je 0x414bae
mov edi, eax
add eax, esi
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x414bae
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 0x414bae
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.00460750
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.00461d80
push 0x12
lea eax, [esp + 0x894]
push str.fs_tcp_conn.qq.com
push eax
mov byte [esp + 0x7a6], bl
call fcn.00461d80
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.00461d80
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.00461d80
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.00461d80
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.00461d80
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.00461d80
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.00461d80
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.00461d80
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.00404950
lea edx, [esp + 0x90]
push ebx
push edx
mov byte [esp + 0x1904], 3
call fcn.00436020
lea eax, [esp + 0x98]
push eax
mov byte [esp + 0x1908], 4
call fcn.00435f10
push str.qqdownload_config.xml
lea ecx, [esp + 0xa0]
push ecx
lea edx, [esp + 0xc0]
push edx
call fcn.00409e90
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.00413570
add esp, 0x24
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x1908], 6
call fcn.00404870
cmp dword [esp + 0xfc], 0x10
mov byte [esp + 0x18fc], 5
jb 0x414e66
mov eax, dword [esp + 0xe8]
push eax
call fcn.00460238
add esp, 4
lea ecx, [esp + 0x284]
call fcn.00404510
mov edx, dword [esp + 0xb0]
mov ebp, 0x10
cmp dword [esp + 0xc4], ebp
mov byte [esp + 0x18fc], 7
mov byte [esp + 0x17], 1
jae 0x414e9b
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 0x414eb6
sub eax, edi
push eax
push edx
mov ecx, esi
call fcn.00404950
lea ecx, [esp + 0x2a0]
call fcn.00406c50
cmp al, bl
je 0x414f68
lea ecx, [esp + 0x2d4]
push ecx
call fcn.00435f10
lea edx, [esp + 0x2f4]
push edx
lea eax, [esp + 0x2dc]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.00413570
add esp, 0x10
cmp dword [esp + 0x54], ebp
mov eax, dword [esp + 0x40]
mov byte [esp + 0x18fc], 8
jae 0x414f20
lea eax, [esp + 0x40]
jmp 0x414f24
cmp eax, ebx
je 0x414f4d
cmp byte [eax], bl
je 0x414f4d
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414f4d
test al, 0x10
jne 0x414f4d
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x44]
push edx
lea ecx, [esp + 0x64]
call fcn.00404870
mov byte [esp + 0x17], bl
cmp dword [esp + 0x54], ebp
mov byte [esp + 0x18fc], 7
jb 0x414f68
mov eax, dword [esp + 0x40]
push eax
call fcn.00460238
add esp, 4
cmp dword [esp + 0x70], ebp
mov eax, dword [esp + 0x5c]
jae 0x414f76
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x10ac]
call fcn.00430d10
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.004308f0
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 0x414fd9
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.00451870
add esp, 0x20
cmp eax, ebx
jl 0x415816
cmp dword [edi], ebx
je 0x415816
push 0x400
lea ecx, [esp + 0x14f4]
push ebx
push ecx
call fcn.00460750
lea edx, [esp + 0x14fc]
push ebx
push edx
call fcn.004517c0
add esp, 0x14
lea eax, [esp + 0x14f0]
push eax
lea ecx, [esp + 0x138]
call fcn.00404b90
cmp dword [esp + 0x148], ebx
mov byte [esp + 0x18fc], 0xa
je 0x415128
lea ecx, [esp + 0x134]
push ecx
call fcn.00435f10
push str.TNProxy.dll
lea edx, [esp + 0x13c]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00409e90
add esp, 0x10
cmp dword [esp + 0x54], ebp
mov eax, dword [esp + 0x40]
mov byte [esp + 0x18fc], 0xb
jae 0x415093
lea eax, [esp + 0x40]
push eax
call fcn.00412dd0
add esp, 4
test al, al
je 0x415117
push 0x118
lea ecx, [esp + 0x170]
push ebx
push ecx
call fcn.00460750
mov eax, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x54], ebp
mov dword [esp + 0x270], 3
jae 0x4150cf
lea eax, [esp + 0x40]
mov edx, dword [esp + 0x50]
push edx
push eax
lea eax, [esp + 0x174]
push eax
call fcn.00460a80
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.00404a20
mov ecx, 0x4b2b5a
call fcn.00413450
lea ecx, [esp + 0x3c]
mov byte [esp + 0x18fc], 0xa
call fcn.0041e990
push ebx
call fcn.00461d3b
push eax
call fcn.00460de5
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.00460df2
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [esp + 0x76a], ebx
add edx, 0x7530
mov word [esp + 0x774], dx
call fcn.00460df2
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 0x4151cf
cmp eax, 0x104
jb 0x4151ac
mov eax, 0x104
cmp dword [esp + 0x8c], ebp
mov ecx, dword [esp + 0x78]
jae 0x4151bd
lea ecx, [esp + 0x78]
push eax
push ecx
lea edx, [esp + 0x56a]
push edx
call fcn.00461af7
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 0x415203
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 0x415207
mov byte [esp + 0x16], bl
cmp byte [esp + 0x17], bl
jne 0x4156c7
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.00436020
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x1908], 0xd
call fcn.00435f10
mov edi, dword [esp + 0x4c]
add esp, 0xc
cmp dword [esp + 0x54], ebp
jae 0x415253
lea edi, [esp + 0x40]
push 0x104
lea eax, [esp + 0x170]
push ebx
push eax
call fcn.00460750
lea eax, [esp + 0x178]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415273
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415285
mov ecx, 0x103
sub eax, esi
sub ecx, edx
cmp ecx, eax
jae 0x4152bb
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4152a5
sub eax, edx
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x4152cb
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4152c0
sub eax, edx
push eax
lea edx, [esp + 0x170]
push edi
push edx
call fcn.004619ff
lea eax, [esp + 0x178]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4152e7
sub eax, edx
cmp eax, 0x103
jae 0x415310
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415303
sub eax, edx
jmp 0x415315
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 0x415326
sub eax, edx
mov ecx, 0x103
sub ecx, eax
cmp ecx, 1
jae 0x41535b
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415347
sub eax, edx
mov edx, 0x103
sub edx, eax
jmp 0x415360
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 0x415370
sub eax, esi
je 0x4153fa
lea eax, [esp + 0x16c]
lea esi, [eax + 1]
jmp 0x415390
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415390
sub eax, esi
cmp byte [esp + eax + 0x16b], 0x5c
je 0x4153fa
push edx
lea edx, [esp + 0x170]
push 0x49a4f0
push edx
call fcn.004619ff
lea eax, [esp + 0x178]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4153c5
sub eax, edx
cmp eax, 0x103
jae 0x4153ee
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4153e1
sub eax, edx
jmp 0x4153f3
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 0x415404
sub eax, edx
mov ecx, 0x103
sub ecx, eax
cmp ecx, 3
jae 0x415439
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415425
sub eax, edx
mov ecx, 0x103
sub ecx, eax
jmp 0x41543e
mov ecx, 3
push ecx
lea edx, [esp + 0x170]
push 0x49b0a0
push edx
call fcn.004619ff
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 0x415460
sub eax, edx
cmp eax, 0x103
jae 0x41548d
lea eax, [esp + 0x16c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x415480
sub eax, edx
jmp 0x415492
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 0x415691
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov ebp, 0x10
jmp 0x4154d0
cmp dword [esp + 0x400], ebp
jne 0x4155ad
lea edx, [esp + 0x42c]
push 0x49b09c
push edx
call fcn.00461d28
add esp, 8
test eax, eax
je 0x4155ad
lea eax, [esp + 0x42c]
push 0x49b098
push eax
call fcn.00461d28
add esp, 8
test eax, eax
je 0x4155ad
lea ecx, [esp + 0x42c]
push ecx
lea ecx, [esp + 0xe8]
call fcn.00404b90
push ebx
push str.QD_Core
lea ecx, [esp + 0xec]
mov byte [esp + 0x1904], 0xe
call fcn.00413350
cmp eax, 0xffffffff
je 0x415599
lea edx, [esp + 0xe4]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x158]
push ecx
call fcn.00413570
lea edx, [esp + 0x15c]
push edx
mov byte [esp + 0x190c], 0xf
call fcn.00435f10
add esp, 0x10
lea eax, [esp + 0x150]
push eax
lea ecx, [esp + 0x30]
call fcn.00414910
lea ecx, [esp + 0x150]
call fcn.0041e990
lea ecx, [esp + 0xe4]
mov byte [esp + 0x18fc], 0xd
call fcn.0041e990
lea ecx, [esp + 0x400]
push ecx
push esi
call edi
test eax, eax
jne 0x4154d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea edx, [esp + 0x2d4]
push edx
call fcn.00435f10
add esp, 4
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
call fcn.0044ab10
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x30]
call fcn.00413420
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
nop
cmp edi, ebx
je 0x41560a
cmp edi, dword [esp + 0x24]
je 0x41560f
call fcn.004606a6
cmp esi, ebp
je 0x415691
cmp edi, ebx
jne 0x415620
call fcn.004606a6
cmp esi, dword [edi + 8]
jb 0x41562a
call fcn.004606a6
cmp dword [esp + 0x2ec], 0x10
mov eax, dword [esp + 0x2d8]
jae 0x415642
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.004036b0
test eax, eax
je 0x41567b
lea ecx, [esp + 0x18]
call fcn.00413210
cmp dword [eax + 0x18], 0x10
jb 0x41566f
mov eax, dword [eax + 4]
jmp 0x415672
add eax, 4
push eax
call fcn.00434120
add esp, 4
cmp esi, dword [edi + 8]
jb 0x415685
call fcn.004606a6
add esi, 0x1c
mov dword [esp + 0x1c], esi
jmp 0x415600
cmp dword [esp + 0x54], 0x10
jb 0x4156a5
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00460238
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.00414410
mov edi, dword [esp + 0x20]
mov ebp, 0x10
cmp dword [esp + 0x14c], ebp
mov byte [esp + 0x18fc], 9
jb 0x4156e8
mov edx, dword [esp + 0x138]
push edx
call fcn.00460238
add esp, 4
cmp byte [esp + 0x16], bl
jne 0x4156fe
mov eax, dword [edi]
cmp eax, ebx
je 0x4156fe
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.00430960
lea ecx, [esp + 0x284]
mov byte [esp + 0x18fc], 5
call fcn.00404630
cmp dword [esp + 0xc4], ebp
jb 0x41573f
mov eax, dword [esp + 0xb0]
push eax
call fcn.00460238
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 0x415772
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00460238
add esp, 4
cmp dword [esp + 0x70], ebp
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
jb 0x41579a
mov edx, dword [esp + 0x5c]
push edx
call fcn.00460238
add esp, 4
cmp dword [esp + 0xe0], ebp
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x4157bf
mov eax, dword [esp + 0xcc]
push eax
call fcn.00460238
add esp, 4
cmp dword [esp + 0x8c], ebp
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov byte [esp + 0xcc], bl
jb 0x4157ea
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00460238
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.004601ff
add esp, 0x18ec
ret
mov byte [esp + 0x16], bl
jmp 0x4156ee