Function at 0x498740
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65389b
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
push ebx
push esi
push edi
mov eax, dword [0x6dc0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x50], ecx
lea ecx, [ebp - 0x1fc]
call fcn.00496db0
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.00421540
lea ecx, [ebp - 0x78]
mov byte [ebp - 0xac], 0
mov dword [ebp - 0x1d8], 0xffffffff
mov dword [ebp - 0x1d4], 0xffffffff
call fcn.00427d90
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x88]
xor ecx, ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0xc], ecx
jbe 0x498a0d
mov eax, dword [ebp + 8]
mov edx, 2
mov ebx, dword [eax + ecx*4]
xor ecx, ecx
mov dword [ebp - 0x2c], ebx
mov esi, dword [ebx + 4]
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
mov ecx, dword [ebx + 4]
add esp, 4
mov edi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], esi
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebx]
push edi
call fcn.005e0850
add esp, 0xc
movzx eax, word [edi]
mov edx, edi
test ax, ax
je 0x49885d
nop word [eax + eax]
lea ecx, [eax - 0x41]
cmp cx, 0x19
ja 0x49884c
add eax, 0x20
movzx eax, ax
mov word [edx], ax
add edx, 2
movzx eax, word [edx]
test ax, ax
jne 0x498840
mov edx, 0x691360
mov ecx, edi
call fcn.0049eb60
test al, al
je 0x4988b0
mov eax, dword [ebx + 0xc]
mov ecx, 0x6aa23c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x49889b
test dx, dx
je 0x498897
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x49889b
add eax, 4
add ecx, 4
test dx, dx
jne 0x498875
xor eax, eax
jmp 0x4988a0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4988b0
mov byte [ebp - 0xac], 1
jmp 0x4989ea
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x10], ebx
je 0x4988d3
add ecx, 0xc
lea edx, [ebp - 0x24]
call fcn.0042be00
mov bx, word [ebp - 0x24]
mov esi, edi
mov ecx, 0x6d
mov edx, 0x6af4ce
nop
movzx eax, word [esi]
lea esi, [esi + 2]
cmp ax, cx
jne 0x4989a0
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4988e0
lea ebx, [edi + 4]
xor edi, edi
cmp word [ebx], di
je 0x49890c
inc edi
cmp word [ebx + edi*2], 0
jne 0x498904
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00545b74
add esp, 4
mov dword [ebp - 0x44], edi
lea ecx, [edi*2 + 2]
mov dword [ebp - 0x40], edi
mov esi, eax
mov dword [ebp - 0x48], esi
push ecx
push ebx
push esi
call fcn.005e0850
add esp, 0xc
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
mov edi, dword [ebp - 0x88]
lea edx, [ebp - 0x24]
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.00405300
push esi
mov ebx, eax
mov byte [ebp - 4], 4
call fcn.00545b61
add esp, 0xc
test ebx, ebx
jne 0x498a3b
cmp dword [ebp - 0x28], edi
mov ecx, dword [ebp - 0x1d4]
cmovne ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1d4], ecx
cmp word [ebp - 0x24], bx
je 0x498997
lea ecx, [ebp - 0x24]
call fcn.004a7790
mov byte [ebp - 4], 2
push dword [ebp - 0x3c]
jmp 0x4989ef
mov eax, 0x74
mov edx, str.testtime
mov esi, edi
mov cl, 0x74
cmp ax, word [edi]
jne 0x4989c6
test cl, cl
je 0x498a36
mov cl, byte [edx + 1]
inc edx
add esi, 2
movzx eax, cl
cmp ax, word [esi]
je 0x4989b3
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x78]
call fcn.004063f0
mov ebx, eax
test ebx, ebx
jne 0x498a3e
cmp word [ebp - 0x24], ax
je 0x4989ea
lea ecx, [ebp - 0x24]
call fcn.004a7790
mov byte [ebp - 4], 2
push edi
call fcn.00545b61
mov ecx, dword [ebp - 0x14]
add esp, 4
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp + 0xc]
jb 0x4987e7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x74]
sub ecx, 1
js 0x498ad8
mov edx, dword [ebp - 0x78]
nop dword [eax]
mov eax, dword [edx + ecx*4]
cmp dword [eax], 1
je 0x498ac4
sub ecx, 1
jns 0x498a20
jmp 0x498ad8
test bx, bx
jmp 0x4989e0
mov edi, dword [ebp - 0x3c]
cmp word [ebp - 0x24], 0
je 0x498a4d
lea ecx, [ebp - 0x24]
call fcn.004a7790
push edi
call fcn.00545b61
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x60]
call fcn.00545b61
add esp, 4
push dword [ebp - 0x6c]
call fcn.00545b61
add esp, 4
lea ecx, [ebp - 0x78]
call fcn.0042eb90
lea ecx, [ebp - 0xa8]
call fcn.004161f0
push dword [ebp - 0xbc]
call fcn.00545b61
add esp, 4
lea eax, [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [ebp - 0x1c4]
test eax, eax
je 0x498b7c
push eax
call esi
test eax, eax
jne 0x498b7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x498b86
test ecx, ecx
js 0x498ad8
cmp word [eax + 8], 0x13
jne 0x498ad8
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1d8], eax
lea eax, [ebp - 0x1fc]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
push 0
lea eax, [ebp - 0x54]
push eax
push 0x498020
push 0
push 0
call fcn.005e7638
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x498b21
call edi
test eax, eax
mov ebx, 1
cmovne ebx, eax
test ebx, ebx
jne 0x498a56
cmp byte [ebp - 0xac], 0
lea eax, [ebp - 0x1fc]
push eax
push 0x4a1ff0
push dword [ebp - 0x30]
mov ecx, 0x1e13
mov eax, 0x1db0
cmovne eax, ecx
push eax
push dword [0x6f2f90]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
test esi, esi
je 0x498a56
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test eax, eax
jne 0x498a5c
call edi
jmp 0x498a5c
mov dword [ebp - 0x1c4], 0
mov eax, dword [ebp - 0x1e0]
test eax, eax
je 0x498b97
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1fc], 0x6acfb4
test edi, edi
je 0x498bd7
mov eax, dword [ebp + 8]
dec edi
mov esi, dword [eax + edi*4]
test esi, esi
je 0x498bd3
push dword [esi + 0xc]
call fcn.00545b61
add esp, 4
push dword [esi]
call fcn.00545b61
add esp, 4
push 0x18
push esi
call fcn.00545b66
add esp, 8
test edi, edi
jne 0x498ba8
push dword [ebp + 8]
call fcn.00545b61
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret