Function at 0x10004e20
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
mov eax, dword [0x101561c0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x78]
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push esi
push edi
mov edi, dword [esp + 0x8c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebp
mov eax, edi
test edi, edi
jne 0x10004e54
mov eax, 0x10108500
movzx edx, word [esp + 0x80]
movzx ecx, word [esp + 0x7c]
mov ebx, dword [esp + 0x78]
push eax
push edx
push ecx
movzx esi, bx
push esi
push 0x10108664
push 0xa
push 0x10158458
mov dword [esp + 0x48], ecx
call fcn.1000f760
mov eax, dword [esp + 0x90]
add esp, 0x1c
push eax
mov ecx, 0x10158200
call fcn.100061a0
xor ecx, ecx
cmp eax, ecx
jne 0x10005353
cmp edx, ecx
jne 0x10005353
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], vtable.CSecBuf.0
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
cmp eax, ecx
je 0x10005310
cmp dword [eax], ecx
je 0x10004ed4
cmp ebp, ecx
je 0x10005310
cmp dword [esp + 0x90], ecx
jne 0x10005310
cmp edi, ecx
je 0x10004f10
push 0x10108660
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004f10
push 0x103
push 0x220f1005
call fcn.1000e600
add esp, 8
mov esi, eax
mov edi, edx
jmp 0x1000500f
push esi
push str.SoftwareAhnlabAhnInst_d
lea eax, [esp + 0x38]
push 0x20
push eax
call fcn.10002910
push 1
lea ecx, [esp + 0x3c]
push ecx
push 1
lea edx, [esp + 0x4c]
push edx
push closesocket
mov dword [esp + 0x4c], 0
call fcn.1000e8b0
mov esi, eax
add esp, 0x24
test esi, esi
je 0x10004f81
push esi
push str.gue:ro_u
push 0x1e
push 0x10158458
call fcn.1000f810
add esp, 0x10
cmp esi, 3
je 0x10004ef5
cmp esi, 2
je 0x10004ef5
push esi
push 0x220f1202
call fcn.1000e600
add esp, 8
mov esi, eax
mov edi, edx
jmp 0x1000500f
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
call fcn.10004900
mov edi, edx
mov edx, dword [esp + 0x3c]
add esp, 0x14
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10004ff9
test edi, edi
jne 0x10004ff9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ebp
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.100041f0
mov esi, eax
add esp, 0x10
mov edi, edx
test esi, esi
jne 0x10004fe3
test edi, edi
je 0x10004feb
cmp edi, 0x220f1e04
jne 0x10004ff9
lea ecx, [esp + 0x18]
call fcn.100040c0
jmp 0x1000534f
push edi
push esi
push str.gue:_I64x
push 0x1e
push 0x10158458
call fcn.1000f810
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x100050c8
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push ebx
call fcn.10004b30
mov ebp, eax
add esp, 0x14
mov ebx, edx
test ebp, ebp
jne 0x1000509e
test ebx, ebx
jne 0x1000509e
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.100041f0
mov ebp, eax
add esp, 0x10
mov ebx, edx
test ebp, ebp
jne 0x10005074
test ebx, ebx
je 0x1000507c
cmp ebx, 0x220f1e04
jne 0x1000509e
lea ecx, [esp + 0x18]
call fcn.100040c0
pop edi
pop esi
mov eax, ebp
pop ebp
mov edx, ebx
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.100108f1
add esp, 0x64
ret 0x1c
push ebx
push ebp
push str.gue:_I64x
push 0x1e
push 0x10158458
call fcn.1000f810
add esp, 0x14
cmp ebx, 0x220f1005
je 0x100050c0
mov esi, ebp
mov edi, ebx
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x24]
cmp edi, 0x220f1005
jne case.default.0x100050fd
mov eax, dword [esp + 0x80]
xor edx, edx
cmp dx, ax
je 0x100050f0
mov ecx, 0xffff
cmp cx, ax
jne case.default.0x100050fd
mov eax, dword [esp + 0x2c]
cmp eax, 3
ja case.default.0x100050fd
jmp dword [eax*4 + 0x10005368]
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push 0
push 0
push 0
push 0
push 0
push 0
test eax, eax
jne 0x10005145
push eax
push eax
push ebx
call sym.AhnI2t.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x100050fd
test edi, edi
jne case.default.0x100050fd
mov eax, dword [esp + 0x10]
mov dword [eax], 0x24
jmp case.default.0x100050fd
shr eax, 1
push eax
push ebp
push ebx
call sym.AhnI2t.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x100050fd
test edi, edi
jne case.default.0x100050fd
mov eax, ebp
lea edx, [eax + 2]
jmp 0x10005170
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005170
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax + 2]
mov dword [edx], ecx
jmp case.default.0x100050fd
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push 0
push 0
push 0
push 0
test eax, eax
jne 0x100051cd
push eax
push eax
push eax
push eax
push ebx
call sym.AhnI2t.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x100050fd
test edi, edi
jne case.default.0x100050fd
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0xa0
jmp case.default.0x100050fd
shr eax, 1
push eax
push ebp
push 0
push 0
push ebx
call sym.AhnI2t.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x100050fd
test edi, edi
jne case.default.0x100050fd
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100051f4
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
mov dword [eax], edx
jmp case.default.0x100050fd
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push 0
push 0
test eax, eax
jne 0x1000524f
push eax
push eax
push eax
push eax
push eax
push eax
push ebx
call sym.AhnI2t.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x100050fd
test edi, edi
jne case.default.0x100050fd
mov edx, dword [esp + 0x10]
mov dword [edx], 0xa0
jmp case.default.0x100050fd
shr eax, 1
push eax
push ebp
push 0
push 0
push 0
push 0
push ebx
call sym.AhnI2t.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x100050fd
test edi, edi
jne case.default.0x100050fd
mov eax, ebp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005280
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ecx], eax
jmp case.default.0x100050fd
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
test eax, eax
jne 0x100052ce
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push ebx
call sym.AhnI2t.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x100050fd
test edi, edi
jne case.default.0x100050fd
mov eax, dword [esp + 0x10]
mov dword [eax], 0x208
jmp case.default.0x100050fd
shr eax, 1
push eax
push ebp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call sym.AhnI2t.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x100050fd
test edi, edi
jne case.default.0x100050fd
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100052f5
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax + 2]
mov dword [edx], ecx
jmp case.default.0x100050fd
push 0x220f1001
push str.gue:r_x
push 0x28
push 0x10158458
call fcn.1000f810
push 0x57
push 0x220f1001
call fcn.1000e600
add esp, 0x18
mov esi, eax
mov edi, edx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.CSecBuf.0
test eax, eax
je 0x1000534f
push eax
call sym.AhnI2t.dll_AhnInst2_SecFree
mov edx, edi
mov eax, esi
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100108f1
add esp, 0x64
ret 0x1c