Function at 0x4c6030
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x611ab9
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x28]
xor ebx, ebx
push ecx
mov byte [esp + 0x23], bl
call fcn.004ce660
add esp, 8
mov dword [esp + 0x160], ebx
mov eax, dword [esp + 0x24]
cmp dword [eax], ebx
je 0x4c698b
cmp dword [eax + 4], ebx
je 0x4c698b
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
mov esi, 0xf
push eax
lea ecx, [esp + 0x13c]
mov dword [esp + 0x154], esi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
call fcn.0040d1b0
mov byte [esp + 0x160], 1
push 1
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [ebx + 1]
call fcn.00450a70
mov byte [esp + 0x160], 2
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
mov byte [esp + 0x160], 3
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0044aac0
movzx edx, al
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x120]
call fcn.0044c330
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x4c68d0
cmp dword [esp + 0x130], 0x10
mov ecx, dword [esp + 0x11c]
jae 0x4c617c
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x14]
push edx
call fcn.0040b760
mov byte [esp + 0x160], 4
push 0x6d1d4c
lea eax, [esp + 0x18]
call fcn.0041cd10
mov edi, eax
mov eax, 0x6d1d4c
call fcn.0041cd70
mov eax, dword [esp + 0x14]
push eax
call fcn.005c6254
add esp, 4
lea ecx, [esp + 0x5c]
push ecx
mov esi, eax
call fcn.00443eb0
mov byte [esp + 0x160], 5
push esi
lea ecx, [esp + 0x60]
call fcn.004c6b70
cmp esi, ebx
jbe 0x4c6297
jmp 0x4c61e0
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0044aac0
movzx eax, al
push eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x120]
call fcn.0044c330
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov eax, dword [ecx + 8]
and al, 6
movsx edx, al
add esp, 8
neg edx
sbb edx, edx
not edx
test ecx, edx
je 0x4c628e
cmp dword [esp + 0x130], 0x10
jb 0x4c623e
mov eax, dword [esp + 0x11c]
mov edi, eax
cmp eax, ebx
jne 0x4c6245
xor eax, eax
jmp 0x4c6259
lea edi, [esp + 0x11c]
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c6250
sub eax, edx
push edi
mov edi, eax
lea eax, [esp + 0x18]
call fcn.0040f900
push 0x6d1d4c
lea eax, [esp + 0x18]
call fcn.0041cd10
mov edi, eax
mov eax, 0x6d1d4c
call fcn.0041cd70
lea ebx, [esp + 0x14]
lea edi, [esp + 0x5c]
call fcn.004441a0
xor ebx, ebx
sub esi, 1
jne 0x4c61e0
lea eax, [esp + 0x100]
push eax
call fcn.004cd870
mov byte [esp + 0x160], 6
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0044aac0
movzx edx, al
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x120]
call fcn.0044c330
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x4c688e
cmp dword [esp + 0x130], 0x10
jb 0x4c630e
mov edx, dword [esp + 0x11c]
test edx, edx
jne 0x4c6315
xor eax, eax
jmp 0x4c6329
lea edx, [esp + 0x11c]
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c6320
sub eax, esi
mov edi, eax
push edx
lea eax, [esp + 0x18]
call fcn.0040f900
push 0x6d1d4c
lea eax, [esp + 0x18]
call fcn.0041cd10
mov edi, eax
mov eax, 0x6d1d4c
call fcn.0041cd70
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x4c683b
push 0x6d9bdc
push eax
call fcn.005c4e54
add esp, 8
test eax, eax
je 0x4c683b
sub eax, dword [esp + 0x14]
mov esi, eax
cmp esi, 0xffffffff
je 0x4c683b
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
lea edx, [esp + 0x18]
call fcn.0045a220
mov byte [esp + 0x160], 7
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.004c1e00
add esp, 8
mov byte [esp + 0x160], 8
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
movzx eax, word [edx]
movzx edi, al
shr eax, 8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x68]
sar eax, 2
cmp edi, eax
jb 0x4c63db
call fcn.005c475a
mov ecx, dword [esp + 0x68]
mov edi, dword [ecx + edi*4]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub edi, 0x10
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4c6409
cmp eax, dword [edi]
jne 0x4c6409
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4c643d
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4c69f7
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
inc eax
push eax
add edi, 0x10
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.005c4800
add esp, 0x10
add ebx, 0x10
mov dword [esp + 0x30], ebx
mov byte [esp + 0x160], 0xa
mov edx, dword [0x728f58]
mov eax, dword [edx + 0xc]
mov ecx, 0x728f58
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x20], edi
mov byte [esp + 0x160], 0xc
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x4c64ec
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 0x18]
lea edx, [esi + 1]
push eax
call fcn.00451980
mov byte [esp + 0x160], 0xd
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x4c64db
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4c64ce
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x4c64ce
call fcn.0040f990
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x4c64c5
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [esp + 0x20], ebx
jmp 0x4c64db
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x24]
call fcn.0040f900
mov byte [esp + 0x160], 0xc
mov eax, dword [esp + 0x44]
jmp 0x4c65d0
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x104]
call fcn.004cdd80
mov byte [esp + 0x160], 0xf
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], 0
je 0x4c65c4
lea ecx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x18]
lea edx, [esi + 1]
push eax
call fcn.00451980
mov edi, eax
mov byte [esp + 0x160], 0x10
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.004c1430
mov byte [esp + 0x168], 0x11
lea ecx, [esp + 0x60]
push 0x6d9bdc
push ecx
mov ecx, eax
call fcn.00424670
mov byte [esp + 0x170], 0x12
lea edx, [esp + 0x58]
push edi
push edx
mov ecx, eax
call fcn.004245c0
add esp, 0x18
mov byte [esp + 0x160], 0x13
lea ebx, [esp + 0x20]
call fcn.0040dcb0
mov byte [esp + 0x160], 0x12
lea ecx, [esp + 0x48]
call fcn.0040b810
mov byte [esp + 0x160], 0x11
lea ecx, [esp + 0x58]
call fcn.0040b810
mov byte [esp + 0x160], 0x10
lea ecx, [esp + 0x54]
call fcn.0040b810
mov byte [esp + 0x160], 0xf
lea ecx, [esp + 0x4c]
call fcn.0040b810
mov byte [esp + 0x160], 0xc
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c65ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x20]
cmp dword [ebx - 0xc], 0
je 0x4c6778
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 0x14]
mov edi, dword [eax]
mov eax, dword [ecx]
mov esi, eax
mov dword [esp + 0x38], edi
test eax, eax
jne 0x4c675c
call fcn.005c475a
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c6624
call fcn.005c475a
mov edi, dword [edi]
test esi, esi
jne 0x4c6763
call fcn.005c475a
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c663f
call fcn.005c475a
mov edi, dword [edi]
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.004c1530
add esp, 8
mov bl, 0x15
mov byte [esp + 0x160], bl
test esi, esi
jne 0x4c676a
call fcn.005c475a
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c6671
call fcn.005c475a
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
jl 0x4c66dd
push str.HKLM_
push ecx
call fcn.005c476a
mov ecx, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x4c669b
sub eax, ecx
sar eax, 1
je 0x4c6732
cmp dword [ecx - 0xc], 0
jl 0x4c66dd
push str.HKCU_
push ecx
call fcn.005c476a
mov ecx, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x4c66bd
sub eax, ecx
sar eax, 1
je 0x4c6732
cmp dword [ecx - 0xc], 0
jl 0x4c66dd
push str.HKCR_
push ecx
call fcn.005c476a
add esp, 8
test eax, eax
je 0x4c66dd
sub eax, dword [esp + 0x1c]
sar eax, 1
je 0x4c6732
test esi, esi
jne 0x4c6771
call fcn.005c475a
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4c66f6
call fcn.005c475a
mov edx, dword [esp + 0x30]
mov edi, dword [edi + 8]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004c1530
add esp, 8
mov byte [esp + 0x160], 0x16
mov edx, dword [edi]
mov edx, dword [edx + 4]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov ecx, edi
call edx
mov byte [esp + 0x160], bl
lea ecx, [esp + 0x40]
call fcn.0040ba40
mov byte [esp + 0x160], 0xc
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 0x4c6780
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4c6780
mov eax, dword [eax]
jmp 0x4c661a
mov eax, dword [esi]
jmp 0x4c6635
mov eax, dword [esi]
jmp 0x4c6667
mov eax, dword [esi]
jmp 0x4c66ec
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x160], 0xa
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 0x4c67a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x160], 8
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 0x4c67d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x160], 7
mov eax, dword [esp + 0x28]
dec dword [eax + 8]
mov edi, eax
add eax, 8
xor esi, esi
cmp dword [eax], esi
jne 0x4c6811
cmp dword [edi + 4], esi
je 0x4c6800
mov eax, dword [edi]
push esi
push eax
call fcn.005c6a69
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], esi
mov ecx, dword [esp + 0x28]
push ecx
call fcn.005c396f
add esp, 4
mov dword [esp + 0x28], esi
mov byte [esp + 0x160], 6
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c6843
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4c6843
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0044aac0
movzx edx, al
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x120]
call fcn.0044c330
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x4c62f5
xor ebx, ebx
mov byte [esp + 0x1b], 1
mov byte [esp + 0x160], 5
lea ecx, [esp + 0x100]
push ecx
call fcn.004cde80
mov byte [esp + 0x160], 4
lea edx, [esp + 0x5c]
push edx
call fcn.0041cb00
mov byte [esp + 0x160], 3
lea ecx, [esp + 0x14]
call fcn.0040b810
mov esi, 0xf
mov byte [esp + 0x160], 2
mov edi, 0x10
cmp dword [esp + 0x130], edi
jb 0x4c68f6
mov eax, dword [esp + 0x11c]
push eax
call fcn.005c396f
add esp, 4
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], 0
mov byte [esp + 0x160], 1
lea ecx, [esp + 0xc4]
call fcn.00450b60
lea ecx, [esp + 0xc4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0xc4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov byte [esp + 0x160], 1
mov edx, ecx
push edx
mov dword [esp + 0xc8], vtable.std::ios_base.0
call fcn.005c27ca
add esp, 4
mov byte [esp + 0x160], 0
cmp dword [esp + 0x14c], edi
jb 0x4c6975
mov eax, dword [esp + 0x138]
push eax
call fcn.005c396f
add esp, 4
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], 0
mov dword [esp + 0x160], 0xffffffff
mov eax, dword [esp + 0x24]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], ebx
jne 0x4c69cd
cmp dword [esi + 4], ebx
je 0x4c69bc
mov eax, dword [esi]
push ebx
push eax
call fcn.005c6a69
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c396f
add esp, 4
mov dword [esp + 0x24], ebx
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.005c397a
mov esp, ebp
pop ebp
ret 8
call fcn.0040fb60
int3