Function at 0x513ae0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x603ceb
mov eax, dword fs:[0]
push eax
sub esp, 0x520
mov eax, dword [0x6687b8]
xor eax, esp
mov dword [esp + 0x518], eax
push ebx
push esi
push edi
mov eax, dword [0x6687b8]
xor eax, esp
push eax
lea eax, [esp + 0x530]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov word [esp + 0x514], 0x5c
mov dword [esp + 0x518], eax
mov dword [esp + 0x51c], eax
mov dword [esp + 0x538], eax
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x538], 1
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x538], 2
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x538], 3
mov eax, dword [0x677600]
mov edx, dword [eax + 0xc]
mov ecx, 0x677600
call edx
add eax, 0x10
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x53c], 4
call fcn.005111f0
mov byte [esp + 0x538], 5
mov edx, dword [0x677600]
mov eax, dword [edx + 0xc]
mov ecx, 0x677600
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
push 0x67f5ec
push ecx
mov ebx, 0x625738
mov byte [esp + 0x540], 6
call fcn.0040aab0
push eax
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x626528
mov byte [esp + 0x548], 7
call fcn.0040aab0
add esp, 0x10
lea edi, [esp + 0x14]
mov byte [esp + 0x538], 8
call fcn.0040ab90
mov byte [esp + 0x538], 7
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x513c56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x538], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x513c7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
lea esi, [esp + 0xbc]
call fcn.0040ad20
test eax, eax
je 0x513de3
lea ecx, [esp + 0x1c]
push 0x67f5ec
push ecx
lea ebx, [esp + 0xf0]
call fcn.0040aab0
add esp, 8
mov byte [esp + 0x538], 9
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x513d09
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x513cfc
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x513cfc
call fcn.0040a210
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x513cf3
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x513d09
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004037a0
mov byte [esp + 0x538], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x513d31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
lea ebx, [esp + 0x24]
mov dword [esp + 0x24], 0
call fcn.005125c0
add esp, 4
test eax, eax
je 0x513d67
mov eax, dword [esp + 0x20]
cmp dword [eax], 0x7d1ea609
push eax
je 0x513f1c
call fcn.005d28c2
add esp, 4
xor bl, bl
test byte [esp + 0x18], 1
je 0x513d95
mov eax, dword [esp + 0x28]
and dword [esp + 0x18], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x513d95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x513db0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push edx
lea edx, [esp + 0x44]
call fcn.005112b0
mov eax, dword [esp + 0x518]
test eax, eax
je 0x513de3
cmp dword [esp + 0x51c], 0
je 0x513de3
lea ecx, [esp + 0xbc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [esp + 0x51c], eax
jne 0x513c96
lea edx, [esp + 0x34]
push 0x67f5ec
push edx
mov ebx, str.recommend_
call fcn.0040aab0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ebx, 0x625738
mov byte [esp + 0x548], 0xa
call fcn.0040aab0
push eax
lea edx, [esp + 0x3c]
push edx
mov ebx, 0x626528
mov byte [esp + 0x550], 0xb
call fcn.0040aab0
add esp, 0x18
lea edi, [esp + 0x14]
mov byte [esp + 0x538], 0xc
call fcn.0040ab90
mov byte [esp + 0x538], 0xb
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x513e67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x538], 0xa
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x513e8f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
lea esi, [esp + 0xbc]
call fcn.0040ad20
test eax, eax
je 0x5140a8
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ebx, [esp + 0xf0]
call fcn.0040aab0
add esp, 8
mov byte [esp + 0x538], 0xd
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x513fce
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x513fc1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x513fc1
call fcn.0040a210
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x513f10
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x513fce
mov esi, eax
mov ecx, 0x17
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
call fcn.005d28c2
add esp, 4
lea ebx, [esp + 0x64]
lea eax, [esp + 0x24]
call fcn.004173d0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.00512ac0
add esp, 0xc
test eax, eax
je 0x513d67
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x626528
call fcn.0040aab0
mov eax, dword [eax]
add esp, 8
or dword [esp + 0x18], 1
lea ecx, [esp + 0xe8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x513fa8
test dx, dx
je 0x513fa4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x513fa8
add eax, 4
add ecx, 4
test dx, dx
jne 0x513f82
xor eax, eax
jmp 0x513fad
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x513d67
mov bl, 1
jmp 0x513d69
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004037a0
mov byte [esp + 0x538], 0xa
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x513ff6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
lea ebx, [esp + 0x24]
mov dword [esp + 0x24], 0
call fcn.005125c0
add esp, 4
test eax, eax
je 0x51402c
mov eax, dword [esp + 0x20]
cmp dword [eax], 0x7d1ea609
push eax
je 0x5141c5
call fcn.005d28c2
add esp, 4
xor bl, bl
test byte [esp + 0x18], 2
je 0x51405a
mov eax, dword [esp + 0x1c]
and dword [esp + 0x18], 0xfffffffd
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51405a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x514075
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push edx
lea edx, [esp + 0x44]
call fcn.005112b0
mov eax, dword [esp + 0x518]
test eax, eax
je 0x5140a8
cmp dword [esp + 0x51c], 0
je 0x5140a8
lea ecx, [esp + 0xbc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [esp + 0x51c], eax
jne 0x513ea7
lea edx, [esp + 0x1c]
push 0x67f5f0
push edx
mov ebx, 0x625738
call fcn.0040aab0
push eax
lea eax, [esp + 0x34]
push eax
mov ebx, 0x626528
mov byte [esp + 0x548], 0xe
call fcn.0040aab0
add esp, 0x10
lea edi, [esp + 0x14]
mov byte [esp + 0x538], 0xf
call fcn.0040ab90
mov byte [esp + 0x538], 0xe
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x514110
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x538], 0xa
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x514138
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
lea esi, [esp + 0xbc]
call fcn.0040ad20
test eax, eax
je 0x514356
lea ecx, [esp + 0x28]
push 0x67f5f0
push ecx
lea ebx, [esp + 0xf0]
call fcn.0040aab0
add esp, 8
mov byte [esp + 0x538], 0x10
mov ecx, dword [eax]
mov esi, dword [esp + 0x14]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x51427c
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x51426f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x51426f
call fcn.0040a210
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x5141b9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x14], ebx
jmp 0x51427c
mov esi, eax
mov ecx, 0x17
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
call fcn.005d28c2
add esp, 4
lea ebx, [esp + 0x64]
lea eax, [esp + 0x24]
call fcn.004173d0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.00512ac0
add esp, 0xc
test eax, eax
je 0x51402c
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, 0x626528
call fcn.0040aab0
mov eax, dword [eax]
add esp, 8
or dword [esp + 0x18], 2
lea ecx, [esp + 0xe8]
jmp 0x514230
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x514256
test dx, dx
je 0x514252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x514256
add eax, 4
add ecx, 4
test dx, dx
jne 0x514230
xor eax, eax
jmp 0x51425b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x51402c
mov bl, 1
jmp 0x51402e
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004037a0
mov byte [esp + 0x538], 0xa
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5142a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x14]
push ecx
lea ebx, [esp + 0x24]
mov dword [esp + 0x24], 0
call fcn.005125c0
add esp, 4
test eax, eax
je 0x5142da
mov eax, dword [esp + 0x20]
cmp dword [eax], 0x7d1ea609
push eax
je 0x51449f
call fcn.005d28c2
add esp, 4
xor bl, bl
test byte [esp + 0x18], 4
je 0x514308
mov eax, dword [esp + 0x1c]
and dword [esp + 0x18], 0xfffffffb
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x514308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x514323
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
push edx
lea edx, [esp + 0x44]
call fcn.005112b0
mov eax, dword [esp + 0x518]
test eax, eax
je 0x514356
cmp dword [esp + 0x51c], 0
je 0x514356
lea ecx, [esp + 0xbc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [esp + 0x51c], eax
jne 0x514150
lea edx, [esp + 0x3c]
push edx
call fcn.00516060
mov byte [esp + 0x53c], 6
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51438b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x538], 5
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5143b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x3c]
call fcn.00512560
mov byte [esp + 0x538], 3
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5143e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x538], 2
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51440c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x538], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x514434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ebx, ebx
mov byte [esp + 0x538], bl
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51445d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x518]
cmp eax, ebx
mov dword [esp + 0x51c], ebx
je 0x51447b
cmp eax, 0xffffffff
je 0x51447b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x530]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.005d28b3
mov esp, ebp
pop ebp
ret
mov esi, eax
mov ecx, 0x17
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
call fcn.005d28c2
add esp, 4
lea ebx, [esp + 0x64]
lea eax, [esp + 0x24]
call fcn.004173d0
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.00512ac0
add esp, 0xc
test eax, eax
je 0x5142da
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, 0x626528
call fcn.0040aab0
mov eax, dword [eax]
add esp, 8
or dword [esp + 0x18], 4
lea ecx, [esp + 0xe8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x51452b
test dx, dx
je 0x514527
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x51452b
add eax, 4
add ecx, 4
test dx, dx
jne 0x514505
xor eax, eax
jmp 0x514530
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x5142da
mov bl, 1
jmp 0x5142dc