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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5d9a89
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x6d26f8]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x6d26f8]
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.004a7900
add esp, 8
mov dword [esp + 0x160], ebx
mov eax, dword [esp + 0x24]
cmp dword [eax], ebx
je 0x49f0c7
cmp dword [eax + 4], ebx
je 0x49f0c7
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.0040f1c0
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.0049fca0
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.0043e470
movzx edx, al
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x120]
call fcn.0043f140
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 0x49f00c
cmp dword [esp + 0x130], 0x10
mov ecx, dword [esp + 0x11c]
jae 0x49e8ac
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x14]
push edx
call fcn.0040b670
mov byte [esp + 0x160], 4
push 0x6a15a0
lea eax, [esp + 0x18]
call fcn.0041c750
mov edi, eax
mov eax, 0x6a15a0
call fcn.00445d10
mov eax, dword [esp + 0x14]
push eax
call fcn.0059607d
add esp, 4
lea ecx, [esp + 0x5c]
push ecx
mov esi, eax
call fcn.0041d3b0
mov byte [esp + 0x160], 5
push esi
lea ecx, [esp + 0x60]
call fcn.0049fe00
cmp esi, ebx
jbe 0x49e9c7
jmp 0x49e910
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0043e470
movzx eax, al
push eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x120]
call fcn.0043f140
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 0x49e9be
cmp dword [esp + 0x130], 0x10
jb 0x49e96e
mov eax, dword [esp + 0x11c]
mov edi, eax
cmp eax, ebx
jne 0x49e975
xor eax, eax
jmp 0x49e989
lea edi, [esp + 0x11c]
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49e980
sub eax, edx
push edi
mov edi, eax
lea eax, [esp + 0x18]
call fcn.0040f500
push 0x6a15a0
lea eax, [esp + 0x18]
call fcn.0041c750
mov edi, eax
mov eax, 0x6a15a0
call fcn.00445d10
lea ebx, [esp + 0x14]
lea edi, [esp + 0x5c]
call fcn.004388b0
xor ebx, ebx
sub esi, 1
jne 0x49e910
lea eax, [esp + 0x100]
push eax
call fcn.004a6b60
mov byte [esp + 0x160], 6
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0043e470
movzx edx, al
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x120]
call fcn.0043f140
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 0x49efca
cmp dword [esp + 0x130], 0x10
jb 0x49ea3e
mov edx, dword [esp + 0x11c]
test edx, edx
jne 0x49ea45
xor eax, eax
jmp 0x49ea59
lea edx, [esp + 0x11c]
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x49ea50
sub eax, esi
mov edi, eax
push edx
lea eax, [esp + 0x18]
call fcn.0040f500
push 0x6a15a0
lea eax, [esp + 0x18]
call fcn.0041c750
mov edi, eax
mov eax, 0x6a15a0
call fcn.00445d10
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x49ef77
push 0x6a15a4
push eax
call fcn.005959bc
add esp, 8
test eax, eax
je 0x49ef77
sub eax, dword [esp + 0x14]
mov esi, eax
cmp esi, 0xffffffff
je 0x49ef77
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
lea edx, [esp + 0x18]
call fcn.004453f0
mov byte [esp + 0x160], 7
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.0049a0a0
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 0x49eb0b
call fcn.0059471a
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 0x49eb39
cmp eax, dword [edi]
jne 0x49eb39
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x49eb6d
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 0x49f133
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.005947c0
add esp, 0x10
add ebx, 0x10
mov dword [esp + 0x30], ebx
mov byte [esp + 0x160], 0xa
mov edx, dword [0x6e9718]
mov eax, dword [edx + 0xc]
mov ecx, 0x6e9718
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 0x49ec1c
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 0x18]
lea edx, [esi + 1]
push eax
call fcn.00445380
mov byte [esp + 0x160], 0xd
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x49ec0b
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x49ebfe
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x49ebfe
call fcn.0040f5a0
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x49ebf5
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 0x49ec0b
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x24]
call fcn.0040f500
mov byte [esp + 0x160], 0xc
mov eax, dword [esp + 0x44]
jmp 0x49ed00
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x104]
call fcn.004a7020
mov byte [esp + 0x160], 0xf
mov eax, dword [esp + 0x2c]
cmp dword [eax - 0xc], 0
je 0x49ecf4
lea ecx, [esp + 0x4c]
push ecx
lea eax, [esp + 0x18]
lea edx, [esi + 1]
push eax
call fcn.00445380
mov edi, eax
mov byte [esp + 0x160], 0x10
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.00499710
mov byte [esp + 0x168], 0x11
lea ecx, [esp + 0x60]
push 0x6a15a4
push ecx
mov ecx, eax
call fcn.0041c860
mov byte [esp + 0x170], 0x12
lea edx, [esp + 0x58]
push edi
push edx
mov ecx, eax
call fcn.0041c7b0
add esp, 0x18
mov byte [esp + 0x160], 0x13
lea ebx, [esp + 0x20]
call fcn.0040d9a0
mov byte [esp + 0x160], 0x12
lea ecx, [esp + 0x48]
call fcn.0040b720
mov byte [esp + 0x160], 0x11
lea ecx, [esp + 0x58]
call fcn.0040b720
mov byte [esp + 0x160], 0x10
lea ecx, [esp + 0x54]
call fcn.0040b720
mov byte [esp + 0x160], 0xf
lea ecx, [esp + 0x4c]
call fcn.0040b720
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 0x49ed1c
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 0x49eeab
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 0x49ee11
call fcn.0059471a
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x49ed54
call fcn.0059471a
mov edi, dword [edi]
test esi, esi
jne 0x49ee18
call fcn.0059471a
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x49ed6f
call fcn.0059471a
mov edi, dword [edi]
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00499810
add esp, 8
mov bl, 0x15
mov byte [esp + 0x160], bl
test esi, esi
jne 0x49ee1f
call fcn.0059471a
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x49eda1
call fcn.0059471a
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
jl 0x49ee26
push str.HKLM_
push ecx
call fcn.0059472a
mov ecx, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x49edc7
sub eax, ecx
sar eax, 1
je 0x49ee09
cmp dword [ecx - 0xc], 0
jl 0x49ee26
push str.HKCU_
push ecx
call fcn.0059472a
mov ecx, dword [esp + 0x24]
add esp, 8
test eax, eax
je 0x49ede9
sub eax, ecx
sar eax, 1
je 0x49ee09
cmp dword [ecx - 0xc], 0
jl 0x49ee26
push str.HKCR_
push ecx
call fcn.0059472a
add esp, 8
test eax, eax
je 0x49ee26
sub eax, dword [esp + 0x1c]
sar eax, 1
jne 0x49ee26
cmp byte [ebp + 0x14], 0
jne 0x49ee2c
jmp 0x49ee7d
mov eax, dword [eax]
jmp 0x49ed4a
mov eax, dword [esi]
jmp 0x49ed65
mov eax, dword [esi]
jmp 0x49ed97
cmp byte [ebp + 0x10], 0
je 0x49ee7d
test esi, esi
jne 0x49eea7
call fcn.0059471a
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x49ee41
call fcn.0059471a
mov edx, dword [esp + 0x30]
mov edi, dword [edi + 8]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00499810
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.0040b950
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 0x49eeb3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49eeb3
mov eax, dword [esi]
jmp 0x49ee37
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 0x49eedb
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 0x49ef03
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
cmp dword [eax], 0
jne 0x49ef4d
cmp dword [edi + 4], 0
je 0x49ef38
mov eax, dword [edi]
push 0
push eax
call fcn.005967a8
add esp, 8
mov dword [edi], eax
mov dword [edi + 4], 0
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0059392f
add esp, 4
mov dword [esp + 0x28], 0
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 0x49ef7f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x49ef7f
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.0043e470
movzx edx, al
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x120]
call fcn.0043f140
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 0x49ea25
xor ebx, ebx
mov byte [esp + 0x1b], 1
mov byte [esp + 0x160], 5
lea ecx, [esp + 0x100]
push ecx
call fcn.004a62c0
mov byte [esp + 0x160], 4
lea edx, [esp + 0x5c]
push edx
call fcn.0041d420
mov byte [esp + 0x160], 3
lea ecx, [esp + 0x14]
call fcn.0040b720
mov esi, 0xf
mov byte [esp + 0x160], 2
mov edi, 0x10
cmp dword [esp + 0x130], edi
jb 0x49f032
mov eax, dword [esp + 0x11c]
push eax
call fcn.0059392f
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.0049fd90
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.0059276a
add esp, 4
mov byte [esp + 0x160], 0
cmp dword [esp + 0x14c], edi
jb 0x49f0b1
mov eax, dword [esp + 0x138]
push eax
call fcn.0059392f
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 0x49f109
cmp dword [esi + 4], ebx
je 0x49f0f8
mov eax, dword [esi]
push ebx
push eax
call fcn.005967a8
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0059392f
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.0059393a
mov esp, ebp
pop ebp
ret 0x10
call fcn.0040f590
int3