Function at 0x417400
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x4f0971
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x1c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x542c54]
xor eax, esp
push eax
lea eax, [esp + 0x1dc]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0xd8]
push eax
xor ebx, ebx
push ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xd4]
push ecx
call fcn.004cc253
lea edx, [esp + 0xd8]
mov ebp, 1
sub edx, ebp
add eax, edx
lea ecx, [esp + 0xd8]
add esp, 4
cmp eax, ecx
jbe 0x41749f
mov edi, edi
mov cl, byte [eax]
cmp cl, 0x5c
je 0x41749b
cmp cl, 0x2f
je 0x41749b
sub eax, ebp
lea edx, [esp + 0xd4]
cmp eax, edx
ja 0x417480
jmp 0x41749f
add eax, ebp
mov byte [eax], bl
push 0x9c
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004cb5a0
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x3c], 5
jne 0x4174e6
cmp dword [esp + 0x40], ebp
jne 0x4174e6
push str.ktbsol1.pem
push 0x104
lea edx, [esp + 0xdc]
push edx
jmp 0x4174f8
push str.ktbsol2.pem
push 0x104
lea eax, [esp + 0xdc]
push eax
call fcn.004cc2ce
add esp, 0xc
push str.C:wooriLog_1.log
lea ecx, [esp + 0x1c]
call fcn.00403830
mov edi, 0xf
mov dword [esp + 0x1e4], ebx
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xd8]
push edx
mov ecx, esi
mov byte [esp + 0x1ec], 1
call fcn.004168a0
test al, al
jne 0x417584
cmp dword [esp + 0x34], 0x10
jb 0x41755a
mov eax, dword [esp + 0x20]
push eax
call fcn.004bf5d1
add esp, 4
mov eax, dword [esp + 0x18]
or esi, 0xffffffff
add eax, 0xfffffff0
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x1e4], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
jmp 0x4176b4
or esi, 0xffffffff
push esi
push ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x53a7c8
call fcn.00403210
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x4175a7
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.00403830
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], ebp
mov byte [esp + 0x1e4], 2
jle 0x4175cf
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.004029b0
mov eax, dword [esp + 0x20]
mov ebp, 0x10
cmp dword [esp + 0x34], ebp
jae 0x4175e2
lea eax, [esp + 0x20]
mov ecx, dword [str.E708395DDB81B1D71429F17763B28DAA]
push ecx
push eax
call fcn.004cb8b7
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
mov byte [esp + 0x1e4], 1
jne 0x417664
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41761d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x34], ebp
jb 0x417630
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004bf5d1
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x1e4], esi
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x417660
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
jmp 0x4176c4
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41767f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x34], ebp
jb 0x417692
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004bf5d1
add esp, 4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x1e4], esi
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
test esi, esi
jg 0x4176c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x1dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.004cb553
add esp, 0x1d4
ret