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

Disassembly:
sub esp, 0x64
mov eax, dword [0x1023d1a4]
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 0x10004dc4
mov eax, 0x101c5608
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 0x101c576c
push 0xa
push 0x1023e498
mov dword [esp + 0x48], ecx
call fcn.1000f2e0
mov eax, dword [esp + 0x90]
add esp, 0x1c
push eax
mov ecx, 0x1023e240
call fcn.10006110
xor ecx, ecx
cmp eax, ecx
jne 0x100052c3
cmp edx, ecx
jne 0x100052c3
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 0x10005280
cmp dword [eax], ecx
je 0x10004e44
cmp ebp, ecx
je 0x10005280
cmp dword [esp + 0x90], ecx
jne 0x10005280
cmp edi, ecx
je 0x10004e80
push 0x101c5768
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10004e80
push 0x103
push 0x220f1005
call fcn.1000e150
add esp, 8
mov esi, eax
mov edi, edx
jmp 0x10004f7f
push esi
push str.SoftwareAhnlabAhnInst_d
lea eax, [esp + 0x38]
push 0x20
push eax
call fcn.10002880
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.1000e430
mov esi, eax
add esp, 0x24
test esi, esi
je 0x10004ef1
push esi
push str.gue:ro_u
push 0x1e
push 0x1023e498
call fcn.1000f390
add esp, 0x10
cmp esi, 3
je 0x10004e65
cmp esi, 2
je 0x10004e65
push esi
push 0x220f1202
call fcn.1000e150
add esp, 8
mov esi, eax
mov edi, edx
jmp 0x10004f7f
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.10004870
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 0x10004f69
test edi, edi
jne 0x10004f69
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ebp
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.10004160
mov esi, eax
add esp, 0x10
mov edi, edx
test esi, esi
jne 0x10004f53
test edi, edi
je 0x10004f5b
cmp edi, 0x220f1e04
jne 0x10004f69
lea ecx, [esp + 0x18]
call fcn.10004030
jmp 0x100052bf
push edi
push esi
push str.gue:_I64x
push 0x1e
push 0x1023e498
call fcn.1000f390
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x10005038
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.10004aa0
mov ebp, eax
add esp, 0x14
mov ebx, edx
test ebp, ebp
jne 0x1000500e
test ebx, ebx
jne 0x1000500e
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.10004160
mov ebp, eax
add esp, 0x10
mov ebx, edx
test ebp, ebp
jne 0x10004fe4
test ebx, ebx
je 0x10004fec
cmp ebx, 0x220f1e04
jne 0x1000500e
lea ecx, [esp + 0x18]
call fcn.10004030
pop edi
pop esi
mov eax, ebp
pop ebp
mov edx, ebx
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.10010586
add esp, 0x64
ret 0x1c
push ebx
push ebp
push str.gue:_I64x
push 0x1e
push 0x1023e498
call fcn.1000f390
add esp, 0x14
cmp ebx, 0x220f1005
je 0x10005030
mov esi, ebp
mov edi, ebx
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x24]
cmp edi, 0x220f1005
jne case.default.0x1000506d
mov eax, dword [esp + 0x80]
xor edx, edx
cmp dx, ax
je 0x10005060
mov ecx, 0xffff
cmp cx, ax
jne case.default.0x1000506d
mov eax, dword [esp + 0x2c]
cmp eax, 3
ja case.default.0x1000506d
jmp dword [eax*4 + 0x100052d8]
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 0x100050b5
push eax
push eax
push ebx
call sym.AhnI2.dll_AI244B9D58C
mov esi, eax
mov edi, edx
test esi, esi
jne case.default.0x1000506d
test edi, edi
jne case.default.0x1000506d
mov eax, dword [esp + 0x10]
mov dword [eax], 0x24
jmp case.default.0x1000506d
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.0x1000506d
test edi, edi
jne case.default.0x1000506d
mov eax, ebp
lea edx, [eax + 2]
jmp 0x100050e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100050e0
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax + 2]
mov dword [edx], ecx
jmp case.default.0x1000506d
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
push 0
push 0
push 0
push 0
test eax, eax
jne 0x1000513d
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.0x1000506d
test edi, edi
jne case.default.0x1000506d
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0xa0
jmp case.default.0x1000506d
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.0x1000506d
test edi, edi
jne case.default.0x1000506d
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005164
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0x10]
mov dword [eax], edx
jmp case.default.0x1000506d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
push 0
push 0
test eax, eax
jne 0x100051bf
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.0x1000506d
test edi, edi
jne case.default.0x1000506d
mov edx, dword [esp + 0x10]
mov dword [edx], 0xa0
jmp case.default.0x1000506d
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.0x1000506d
test edi, edi
jne case.default.0x1000506d
mov eax, ebp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100051f0
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ecx], eax
jmp case.default.0x1000506d
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
test eax, eax
jne 0x1000523e
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.0x1000506d
test edi, edi
jne case.default.0x1000506d
mov eax, dword [esp + 0x10]
mov dword [eax], 0x208
jmp case.default.0x1000506d
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.0x1000506d
test edi, edi
jne case.default.0x1000506d
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10005265
sub eax, edx
mov edx, dword [esp + 0x10]
sar eax, 1
lea ecx, [eax + eax + 2]
mov dword [edx], ecx
jmp case.default.0x1000506d
push 0x220f1001
push str.gue:r_x
push 0x28
push 0x1023e498
call fcn.1000f390
push 0x57
push 0x220f1001
call fcn.1000e150
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 0x100052bf
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.10010586
add esp, 0x64
ret 0x1c