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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a618b
mov eax, dword fs:[0]
push eax
sub esp, 0x520
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x518], eax
push ebx
push esi
push edi
mov eax, dword [0x5f13cc]
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 [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x538], 1
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x538], 2
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0x538], 3
mov eax, dword [0x5fcd20]
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x38], eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x53c], 4
call fcn.004d32a0
mov byte [esp + 0x538], 5
mov edx, dword [0x5fcd20]
mov eax, dword [edx + 0xc]
mov ecx, 0x5fcd20
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
push 0x60338c
push ecx
mov ebx, 0x5c9fb8
mov byte [esp + 0x540], 6
call fcn.00412480
push eax
lea edx, [esp + 0x2c]
push edx
mov ebx, 0x5be44c
mov byte [esp + 0x548], 7
call fcn.00412480
add esp, 0x10
lea edi, [esp + 0x14]
mov byte [esp + 0x538], 8
call fcn.004035d0
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 0x4d5a56
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 0x4d5a7e
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.0049c410
test eax, eax
je 0x4d5be3
lea ecx, [esp + 0x1c]
push 0x60338c
push ecx
lea ebx, [esp + 0xf0]
call fcn.00412480
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 0x4d5b09
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4d5afc
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4d5afc
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4d5af3
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 0x4d5b09
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00404050
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 0x4d5b31
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.004d4730
add esp, 4
test eax, eax
je 0x4d5b67
mov eax, dword [esp + 0x20]
cmp dword [eax], 0x7d1ea609
push eax
je 0x4d5d1c
call fcn.0057832c
add esp, 4
xor bl, bl
test byte [esp + 0x18], 1
je 0x4d5b95
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 0x4d5b95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4d5bb0
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.004d3360
mov eax, dword [esp + 0x518]
test eax, eax
je 0x4d5be3
cmp dword [esp + 0x51c], 0
je 0x4d5be3
lea ecx, [esp + 0xbc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [esp + 0x51c], eax
jne 0x4d5a96
lea edx, [esp + 0x34]
push 0x60338c
push edx
mov ebx, str.recommend_
call fcn.00412480
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ebx, 0x5c9fb8
mov byte [esp + 0x548], 0xa
call fcn.00412480
push eax
lea edx, [esp + 0x3c]
push edx
mov ebx, 0x5be44c
mov byte [esp + 0x550], 0xb
call fcn.00412480
add esp, 0x18
lea edi, [esp + 0x14]
mov byte [esp + 0x538], 0xc
call fcn.004035d0
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 0x4d5c67
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 0x4d5c8f
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.0049c410
test eax, eax
je 0x4d5ea8
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x2c]
push edx
lea ebx, [esp + 0xf0]
call fcn.00412480
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 0x4d5dce
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4d5dc1
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4d5dc1
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4d5d10
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 0x4d5dce
mov esi, eax
mov ecx, 0x17
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
call fcn.0057832c
add esp, 4
lea ebx, [esp + 0x64]
lea eax, [esp + 0x24]
call fcn.0040a090
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004d4c20
add esp, 0xc
test eax, eax
je 0x4d5b67
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x5be44c
call fcn.00412480
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 0x4d5da8
test dx, dx
je 0x4d5da4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d5da8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d5d82
xor eax, eax
jmp 0x4d5dad
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4d5b67
mov bl, 1
jmp 0x4d5b69
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00404050
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 0x4d5df6
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.004d4730
add esp, 4
test eax, eax
je 0x4d5e2c
mov eax, dword [esp + 0x20]
cmp dword [eax], 0x7d1ea609
push eax
je 0x4d5fc5
call fcn.0057832c
add esp, 4
xor bl, bl
test byte [esp + 0x18], 2
je 0x4d5e5a
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 0x4d5e5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4d5e75
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.004d3360
mov eax, dword [esp + 0x518]
test eax, eax
je 0x4d5ea8
cmp dword [esp + 0x51c], 0
je 0x4d5ea8
lea ecx, [esp + 0xbc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [esp + 0x51c], eax
jne 0x4d5ca7
lea edx, [esp + 0x1c]
push 0x603390
push edx
mov ebx, 0x5c9fb8
call fcn.00412480
push eax
lea eax, [esp + 0x34]
push eax
mov ebx, 0x5be44c
mov byte [esp + 0x548], 0xe
call fcn.00412480
add esp, 0x10
lea edi, [esp + 0x14]
mov byte [esp + 0x538], 0xf
call fcn.004035d0
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 0x4d5f10
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 0x4d5f38
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.0049c410
test eax, eax
je 0x4d6156
lea ecx, [esp + 0x28]
push 0x603390
push ecx
lea ebx, [esp + 0xf0]
call fcn.00412480
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 0x4d607c
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4d606f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4d606f
call fcn.00403ce0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4d5fb9
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 0x4d607c
mov esi, eax
mov ecx, 0x17
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
call fcn.0057832c
add esp, 4
lea ebx, [esp + 0x64]
lea eax, [esp + 0x24]
call fcn.0040a090
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004d4c20
add esp, 0xc
test eax, eax
je 0x4d5e2c
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, 0x5be44c
call fcn.00412480
mov eax, dword [eax]
add esp, 8
or dword [esp + 0x18], 2
lea ecx, [esp + 0xe8]
jmp 0x4d6030
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4d6056
test dx, dx
je 0x4d6052
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d6056
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d6030
xor eax, eax
jmp 0x4d605b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4d5e2c
mov bl, 1
jmp 0x4d5e2e
mov ebx, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.00404050
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 0x4d60a4
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.004d4730
add esp, 4
test eax, eax
je 0x4d60da
mov eax, dword [esp + 0x20]
cmp dword [eax], 0x7d1ea609
push eax
je 0x4d629f
call fcn.0057832c
add esp, 4
xor bl, bl
test byte [esp + 0x18], 4
je 0x4d6108
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 0x4d6108
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4d6123
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.004d3360
mov eax, dword [esp + 0x518]
test eax, eax
je 0x4d6156
cmp dword [esp + 0x51c], 0
je 0x4d6156
lea ecx, [esp + 0xbc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov dword [esp + 0x51c], eax
jne 0x4d5f50
lea edx, [esp + 0x3c]
push edx
call fcn.004d7e60
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 0x4d618b
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 0x4d61b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x3c]
call fcn.004d46d0
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 0x4d61e4
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 0x4d620c
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 0x4d6234
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 0x4d625d
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 0x4d627b
cmp eax, 0xffffffff
je 0x4d627b
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.005787fd
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.0057832c
add esp, 4
lea ebx, [esp + 0x64]
lea eax, [esp + 0x24]
call fcn.0040a090
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.004d4c20
add esp, 0xc
test eax, eax
je 0x4d60da
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x20]
push eax
mov ebx, 0x5be44c
call fcn.00412480
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 0x4d632b
test dx, dx
je 0x4d6327
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4d632b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4d6305
xor eax, eax
jmp 0x4d6330
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
test al, al
je 0x4d60da
mov bl, 1
jmp 0x4d60dc