Function at 0x4c7d70
Capabilities:
Access peb ldr_data
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x56a670
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94c
mov eax, dword [0x5af710]
xor eax, esp
push ebx
push ebp
push esi
mov dword [esp + 0x954], eax
push edi
mov ebp, ecx
push 0x104
lea eax, [esp + 0x58]
xor ebx, ebx
push eax
mov dword [esp + 0x96c], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x96c]
push ecx
lea edx, [esp + 0x30]
push 0x572ea0
push edx
call fcn.0042a827
add esp, 0xc
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x968], 1
call fcn.004071e0
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x970], 2
call fcn.0040b370
mov eax, dword [eax]
push 0x574434
push eax
call fcn.0053d7d9
mov edi, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 0x14
mov dword [esp + 0x3c], edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c7e34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x964], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c7e5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, ebx
je 0x4c840f
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
lea esi, [ebp + 0x28]
je 0x4c7e75
push eax
call fcn.0055047a
add esp, 4
lea eax, [esp + 0x44]
push eax
mov ecx, ebp
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.004c7af0
push eax
mov ecx, esi
mov byte [esp + 0x968], 3
call fcn.004c7490
mov eax, dword [esp + 0x48]
cmp eax, ebx
mov byte [esp + 0x964], 1
je 0x4c7eb3
push eax
call fcn.0055047a
add esp, 4
push 0x572aed
lea ecx, [esp + 0x14]
call fcn.004071e0
push edi
lea ecx, [esp + 0x15c]
push 0x800
push ecx
mov byte [esp + 0x970], 4
mov dword [esp + 0x34], ebx
call fcn.0053de6e
add esp, 0xc
test eax, eax
je 0x4c83e0
jmp 0x4c7ef0
lea edx, [esp + 0x158]
push 0x577294
push edx
call fcn.0053c3a0
add esp, 8
test eax, eax
je 0x4c7f11
mov dword [esp + 0x28], 1
lea eax, [esp + 0x158]
push 0x577290
push eax
call fcn.0053c3a0
add esp, 8
test eax, eax
je 0x4c7f42
push ebx
push 0x572aed
lea ecx, [esp + 0x18]
call fcn.004037b0
mov dword [esp + 0x28], ebx
jmp 0x4c83be
cmp dword [esp + 0x28], ebx
jne 0x4c83be
lea ecx, [esp + 0x158]
push str._vrvscript_
push ecx
call fcn.0053c3a0
add esp, 8
test eax, eax
jne 0x4c83be
lea edx, [esp + 0x158]
push str.__data_
push edx
call fcn.0053c3a0
add esp, 8
test eax, eax
lea eax, [esp + 0x158]
lea edx, [eax + 1]
jne 0x4c7fb0
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c7f90
sub eax, edx
push eax
lea eax, [esp + 0x15c]
push eax
lea ecx, [esp + 0x18]
call fcn.0040b2c0
jmp 0x4c83be
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4c7fb0
sub eax, edx
push eax
lea ecx, [esp + 0x15c]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040b2c0
mov eax, dword [esp + 0x10]
cmp dword [eax - 0xc], ebx
jl 0x4c83b0
push str._mode_
push eax
call fcn.0053d584
add esp, 8
cmp eax, ebx
je 0x4c83b0
sub eax, dword [esp + 0x10]
js 0x4c83b0
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x38]
push eax
mov ecx, ebp
call fcn.004c7120
mov eax, dword [eax]
push eax
call fcn.0053c6a5
mov edi, eax
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c8035
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push edi
call fcn.004c59b0
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x40], esi
je 0x4c83b0
mov dword [esi + 4], edi
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
jl 0x4c8395
push str._win_ver_
push ecx
call fcn.0053d584
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
je 0x4c8128
sub eax, ecx
js 0x4c8128
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebp
call fcn.004c7120
lea ecx, [esp + 0x14]
mov byte [esp + 0x964], 5
call fcn.0042a797
mov eax, dword [ebp + 0x38]
cmp eax, ebx
je 0x4c80c9
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], ebx
jl 0x4c80c9
push eax
push ecx
call fcn.0053d584
add esp, 8
cmp eax, ebx
je 0x4c80c9
sub eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
jns 0x4c8113
mov eax, dword [esi + 8]
sub eax, 0x10
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c80e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.0055047a
add esp, 4
push 0x572aed
lea ecx, [esp + 0x14]
call fcn.004054c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x964], 4
call fcn.00402200
jmp 0x4c83be
lea ecx, [esp + 0x14]
mov byte [esp + 0x964], 4
call fcn.00402200
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
jl 0x4c8395
push str._time_
push ecx
call fcn.0053d584
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
je 0x4c81d4
sub eax, ecx
js 0x4c81d4
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebp
call fcn.004c7120
cmp dword [esi + 4], 3
mov byte [esp + 0x964], 6
jne 0x4c81a8
mov edx, dword [esp + 0x24]
mov edi, dword [esi]
push edx
call fcn.0053c6a5
add esp, 4
push eax
mov ecx, esi
call dword [edi + 0xc]
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push str._Y__m__d__H:_M:_S
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.004189e9
mov ecx, eax
call fcn.0041916d
jmp 0x4c81b9
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0040b190
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x24]
mov byte [esp + 0x964], 4
call fcn.00402200
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
jl 0x4c8395
push str._command_
push ecx
call fcn.0053d584
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
je 0x4c823e
sub eax, ecx
js 0x4c823e
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.004c7120
push ecx
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
mov byte [esp + 0x96c], 7
call fcn.0040b190
mov ecx, esi
call fcn.004c6db0
lea ecx, [esp + 0x20]
mov byte [esp + 0x964], 4
call fcn.00402200
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
jl 0x4c8395
push str._isforcedownload_
push ecx
call fcn.0053d584
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
je 0x4c828e
sub eax, ecx
js 0x4c828e
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call fcn.004c7120
mov eax, dword [eax]
push eax
call fcn.0053c6a5
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esi + 0x14], eax
call fcn.00402200
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
jl 0x4c8395
push str._isdownloadrun_
push ecx
call fcn.0053d584
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
je 0x4c82de
sub eax, ecx
js 0x4c82de
push eax
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, ebp
call fcn.004c7120
mov eax, dword [eax]
push eax
call fcn.0053c6a5
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esi + 0x18], eax
call fcn.00402200
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], ebx
jl 0x4c8395
push str._iprange_
push ecx
call fcn.0053d584
add esp, 8
cmp eax, ebx
je 0x4c8395
sub eax, dword [esp + 0x10]
js 0x4c8395
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
mov ecx, ebp
call fcn.004c7120
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x96c], 8
call fcn.0040b190
mov ecx, ebp
call fcn.004c7630
cmp eax, ebx
jne 0x4c8384
mov eax, dword [esi + 8]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c835a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.0055047a
add esp, 4
push 0x572aed
lea ecx, [esp + 0x14]
call fcn.004054c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x964], 4
call fcn.00402200
jmp 0x4c83be
lea ecx, [esp + 0x18]
mov byte [esp + 0x964], 4
call fcn.00402200
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x40]
push eax
lea ecx, [ebp + 0x18]
call fcn.004c75e0
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esp + 0x10]
push 0x572aed
call fcn.004054c0
mov edi, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x15c]
push 0x800
push ecx
call fcn.0053de6e
add esp, 0xc
test eax, eax
jne 0x4c7ef0
push edi
call fcn.0053baab
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x964], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c840f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x964], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c8434
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x96c]
add eax, 0xfffffff0
mov dword [esp + 0x964], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c8460
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x95c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x950]
pop ebp
pop ebx
xor ecx, esp
call fcn.0053aaae
add esp, 0x958
ret 4