Function at 0x404230
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43acdb
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x44a874]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
push edi
mov eax, dword [0x44a874]
xor eax, esp
push eax
lea eax, [esp + 0x248]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [esp + 0x30], ebx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x206
lea eax, [esp + 0x3a]
push 0
push eax
mov word [esp + 0x40], 0
call fcn.00422b60
add esp, 0xc
push 0x441650
push esi
call fcn.004215bf
push 0x104
add ebx, 0x28
push 0
push ebx
mov edi, eax
call fcn.00422b60
mov ecx, edi
sub ecx, esi
add esp, 0x14
sar ecx, 1
add ecx, 1
push ecx
push esi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
add edi, 0xa
push edi
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
call fcn.004046c0
mov dword [esp + 0x250], 0
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4045bd
mov edi, dword [esp + 0x18]
mov esi, edi
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 7
jne 0x4045a1
cmp eax, 3
ja 0x404336
call fcn.00421af8
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov ebx, 8
cmp dword [ecx + 0x6c], ebx
jb 0x404349
mov edx, dword [ecx + 0x58]
mov dword [esp + 0x24], edx
jmp 0x404350
lea eax, [ecx + 0x58]
mov dword [esp + 0x24], eax
test ecx, ecx
je 0x404370
mov esi, edi
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x40437d
call fcn.00421af8
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x50], ebx
jb 0x40438b
mov edx, dword [ecx + 0x3c]
mov dword [esp + 0x28], edx
jmp 0x404392
lea eax, [ecx + 0x3c]
mov dword [esp + 0x28], eax
test ecx, ecx
je 0x4043b2
mov esi, edi
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x4043bf
call fcn.00421af8
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x34], ebx
jb 0x4043cd
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x20], edx
jmp 0x4043d4
lea eax, [ecx + 0x20]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x4043ef
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4043f8
call fcn.00421af8
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x18], ebx
jb 0x404402
mov ebx, dword [ecx + 4]
jmp 0x404405
lea ebx, [ecx + 4]
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042162f
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
mov esi, eax
call fcn.0042162f
mov edi, eax
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call fcn.0042162f
add esp, 4
push ebx
call fcn.0042162f
mov ecx, dword [esp + 0x18]
lea eax, [edi - 0x24f]
cdq
sub eax, edx
sar eax, 1
mov dword [0x4531c4], eax
lea eax, [esi - 0x1cc]
cdq
sub eax, edx
sar eax, 1
add esp, 4
test ecx, ecx
mov dword [0x4531c8], eax
je 0x404481
mov edi, dword [esp + 0x18]
mov esi, edi
sub esi, ecx
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 4
ja 0x40448e
call fcn.00421af8
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx + 0x84]
sub edi, ecx
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 4
ja 0x4044b7
call fcn.00421af8
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x88], 8
jb 0x4044c5
mov ecx, dword [ecx + 0x74]
jmp 0x4044c8
add ecx, 0x74
push ecx
call fcn.00421905
add esp, 4
push eax
call fcn.0042189c
add esp, 4
mov ecx, esi
call fcn.004045f0
mov esi, dword [esp + 0x14]
test esi, esi
mov dword [0x4531cc], eax
je 0x40450c
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 5
ja 0x404515
call fcn.00421af8
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
add esi, 0x8c
push esi
mov ecx, 0x451ca8
call fcn.00401dc0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x404550
mov ecx, dword [esp + 0x18]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 6
ja 0x404559
call fcn.00421af8
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
add esi, 0xa8
push esi
mov ecx, 0x451ce0
call fcn.00401dc0
mov ecx, dword [esp + 0x30]
call fcn.00405290
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40459d
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x18]
push ecx
call fcn.004070e0
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call fcn.00420bda
add esp, 4
xor eax, eax
jmp 0x4045c2
mov eax, dword [esp + 0x2c]
push eax
mov eax, ecx
call fcn.004070e0
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call fcn.00420bda
add esp, 4
mov eax, 0x80004005
mov ecx, dword [esp + 0x248]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00420bdf
mov esp, ebp
pop ebp
ret 4