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

Disassembly:
sub esp, 0x64
mov eax, dword [0x1023d1bc]
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 0x10004e94
mov eax, 0x101c5610
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 0x101c5774
push 0xa
push 0x1023e498
mov dword [esp + 0x48], ecx
call fcn.1000f7a0
mov eax, dword [esp + 0x90]
add esp, 0x1c
push eax
mov ecx, 0x1023e240
call fcn.100061e0
xor ecx, ecx
cmp eax, ecx
jne 0x10005393
cmp edx, ecx
jne 0x10005393
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 0x10005350
cmp dword [eax], ecx
je 0x10004f14
cmp ebp, ecx
je 0x10005350
cmp dword [esp + 0x90], ecx
jne 0x10005350
cmp edi, ecx
je 0x10004f50
push 0x101c5770
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004f50
push 0x103
push 0x220f1005
call fcn.1000e640
add esp, 8
mov esi, eax
mov edi, edx
jmp 0x1000504f
push esi
push str.SoftwareAhnlabAhnInst_d
lea eax, [esp + 0x38]
push 0x20
push eax
call fcn.10002950
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.1000e8f0
mov esi, eax
add esp, 0x24
test esi, esi
je 0x10004fc1
push esi
push str.gue:ro_u
push 0x1e
push 0x1023e498
call fcn.1000f850
add esp, 0x10
cmp esi, 3
je 0x10004f35
cmp esi, 2
je 0x10004f35
push esi
push 0x220f1202
call fcn.1000e640
add esp, 8
mov esi, eax
mov edi, edx
jmp 0x1000504f
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.10004940
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 0x10005039
test edi, edi
jne 0x10005039
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ebp
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.10004230
mov esi, eax
add esp, 0x10
mov edi, edx
test esi, esi
jne 0x10005023
test edi, edi
je 0x1000502b
cmp edi, 0x220f1e04
jne 0x10005039
lea ecx, [esp + 0x18]
call fcn.10004100
jmp 0x1000538f
push edi
push esi
push str.gue:_I64x
push 0x1e
push 0x1023e498
call fcn.1000f850
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x10005108
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.10004b70
mov ebp, eax
add esp, 0x14
mov ebx, edx
test ebp, ebp
jne 0x100050de
test ebx, ebx
jne 0x100050de
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.10004230
mov ebp, eax
add esp, 0x10
mov ebx, edx
test ebp, ebp
jne 0x100050b4
test ebx, ebx
je 0x100050bc
cmp ebx, 0x220f1e04
jne 0x100050de
lea ecx, [esp + 0x18]
call fcn.10004100
pop edi
pop esi
mov eax, ebp
pop ebp
mov edx, ebx
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.10010588
add esp, 0x64
ret 0x1c
push ebx
push ebp
push str.gue:_I64x
push 0x1e
push 0x1023e498
call fcn.1000f850
add esp, 0x14
cmp ebx, 0x220f1005
je 0x10005100
mov esi, ebp
mov edi, ebx
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x24]
cmp edi, 0x220f1005
jne case.default.0x1000513d
mov eax, dword [esp + 0x80]
xor edx, edx
cmp dx, ax
je 0x10005130
mov ecx, 0xffff
cmp cx, ax
jne case.default.0x1000513d
mov eax, dword [esp + 0x2c]
cmp eax, 3
ja case.default.0x1000513d
jmp dword [eax*4 + 0x100053a8]
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 0x10005185
push eax
push eax
push ebx
call sym.AhnI2.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x1000513d
test edi, edi
jne case.default.0x1000513d
mov eax, dword [esp + 0x10]
mov dword [eax], 0x24
jmp case.default.0x1000513d
shr eax, 1
push eax
push ebp
push ebx
call sym.AhnI2.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x1000513d
test edi, edi
jne case.default.0x1000513d
mov eax, ebp
lea edx, [eax + 2]
jmp 0x100051b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100051b0
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax + 2]
mov dword [edx], ecx
jmp case.default.0x1000513d
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push 0
push 0
push 0
push 0
test eax, eax
jne 0x1000520d
push eax
push eax
push eax
push eax
push ebx
call sym.AhnI2.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x1000513d
test edi, edi
jne case.default.0x1000513d
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0xa0
jmp case.default.0x1000513d
shr eax, 1
push eax
push ebp
push 0
push 0
push ebx
call sym.AhnI2.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x1000513d
test edi, edi
jne case.default.0x1000513d
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005234
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
mov dword [eax], edx
jmp case.default.0x1000513d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push 0
push 0
test eax, eax
jne 0x1000528f
push eax
push eax
push eax
push eax
push eax
push eax
push ebx
call sym.AhnI2.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x1000513d
test edi, edi
jne case.default.0x1000513d
mov edx, dword [esp + 0x10]
mov dword [edx], 0xa0
jmp case.default.0x1000513d
shr eax, 1
push eax
push ebp
push 0
push 0
push 0
push 0
push ebx
call sym.AhnI2.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x1000513d
test edi, edi
jne case.default.0x1000513d
mov eax, ebp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100052c0
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ecx], eax
jmp case.default.0x1000513d
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
test eax, eax
jne 0x1000530e
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push ebx
call sym.AhnI2.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x1000513d
test edi, edi
jne case.default.0x1000513d
mov eax, dword [esp + 0x10]
mov dword [eax], 0x208
jmp case.default.0x1000513d
shr eax, 1
push eax
push ebp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
call sym.AhnI2.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x1000513d
test edi, edi
jne case.default.0x1000513d
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005335
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax + 2]
mov dword [edx], ecx
jmp case.default.0x1000513d
push 0x220f1001
push str.gue:r_x
push 0x28
push 0x1023e498
call fcn.1000f850
push 0x57
push 0x220f1001
call fcn.1000e640
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 0x1000538f
push eax
call sym.AhnI2.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.10010588
add esp, 0x64
ret 0x1c