Function at 0x4032f0
Capabilities:
Check os version
Get system information on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x1d0
push ebx
mov ebx, dword [esp + 0x1e0]
push ebp
mov ebp, dword [esp + 0x1e0]
push esi
mov esi, dword [esp + 0x1e0]
push edi
mov byte [esi], 0
lea eax, [esp + 0xb4]
mov byte [ebp], 0
push eax
mov dword [ebx], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x9c
call edi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40336b
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x94
call edi
test eax, eax
je 0x403ec3
mov eax, dword [esp + 0x28]
sub eax, 0
je 0x404024
dec eax
je 0x403ed0
dec eax
jne 0x40405d
mov ecx, dword [esp + 0x1c]
cmp ecx, 6
jb 0x4033fd
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4033b4
lea ecx, [esp + 0xb4]
push ecx
call eax
cmp byte [esp + 0xb2], 1
jne 0x4033e8
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4033de
mov edx, dword [str.Vista]
mov dword [esi], edx
mov cx, word [0x417c3c]
mov word [esi + 4], cx
jmp 0x4035fc
mov word [esi], 0x37
jmp 0x4035fc
mov edx, dword [str.2008]
mov dword [esi], edx
mov al, byte [0x417c34]
mov byte [esi + 4], al
jmp 0x4035f8
cmp ecx, 5
mov eax, dword [esp + 0x20]
jne 0x4035d7
cmp eax, 2
jne 0x4035a6
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403438
lea ecx, [esp + 0xb4]
push ecx
call eax
cmp byte [esp + 0xb2], 1
jne 0x403482
mov dx, word [0x417c2c]
mov word [esi], dx
mov al, byte [0x417c2e]
mov byte [esi + 2], al
mov edx, dword [str.Professional]
mov ecx, ebp
mov dword [ecx], edx
mov eax, dword [0x417410]
mov dword [ecx + 4], eax
mov edx, dword [0x417414]
mov dword [ecx + 8], edx
mov al, byte [0x417418]
mov byte [ecx + 0xc], al
mov dword [ebx], 0x42
jmp 0x4035f8
mov ecx, dword [str.2003]
mov eax, dword [esp + 0xb0]
test al, 0x20
mov dword [esi], ecx
mov dl, byte [0x417c28]
mov byte [esi + 4], dl
je 0x40350d
mov ecx, dword [str.Small_Business_Server]
mov eax, ebp
mov dword [eax], ecx
mov edx, dword [0x4175f8]
mov dword [eax + 4], edx
mov ecx, dword [0x4175fc]
mov dword [eax + 8], ecx
mov edx, dword [0x417600]
mov dword [eax + 0xc], edx
mov ecx, dword [0x417604]
mov dword [eax + 0x10], ecx
mov dx, word [0x417608]
push 1
mov word [eax + 0x14], dx
call fcn.004024e0
add esp, 4
test eax, eax
je 0x403502
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4034e8
mov eax, dword [0x417c20]
mov dword [edi], eax
mov dword [ebx], 0x4f
jmp 0x4035f8
mov dword [ebx], 0x4c
jmp 0x4035f8
test ah, 0x20
push 0
mov ecx, ebp
je 0x40356b
mov edx, dword [str.Storage_Server]
mov dword [ecx], edx
mov eax, dword [0x417c14]
mov dword [ecx + 4], eax
mov edx, dword [0x417c18]
mov dword [ecx + 8], edx
mov ax, word [0x417c1c]
mov word [ecx + 0xc], ax
mov dl, byte [0x417c1e]
mov byte [ecx + 0xe], dl
call fcn.004024e0
add esp, 4
test eax, eax
je 0x403560
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403551
mov eax, dword [0x417c20]
mov dword [edi], eax
mov dword [ebx], 0x4b
jmp 0x4035f8
mov edx, dword [str.Server]
mov dword [ecx], edx
mov ax, word [0x417c0c]
mov word [ecx + 4], ax
mov dl, byte [0x417c0e]
mov byte [ecx + 6], dl
call fcn.004024e0
add esp, 4
test eax, eax
je 0x4035f8
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403595
mov eax, dword [0x417c20]
mov dword [edi], eax
jmp 0x4035f8
cmp eax, 1
jne 0x4035c0
mov cx, word [0x417c2c]
mov word [esi], cx
mov dl, byte [0x417c2e]
mov byte [esi + 2], dl
jmp 0x4035fc
test eax, eax
jne 0x4035e8
mov ecx, dword [str.2000]
mov dword [esi], ecx
mov dl, byte [0x417c04]
mov byte [esi + 4], dl
jmp 0x4035fc
cmp ecx, 4
jne 0x4035e8
test eax, eax
jne 0x4035e8
mov dword [esi], 0x34544e
jmp 0x4035fc
push eax
push ecx
push str.NT_d._d
push esi
call fcn.0040c706
add esp, 0x10
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x403cc1
mov cl, byte [esp + 0xb2]
cmp cl, 1
jne 0x403790
mov ecx, dword [esp + 0x1c]
cmp ecx, 6
jb 0x403662
push ebx
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004029f0
mov al, byte [esp + 0xe4]
add esp, 0xc
test al, al
je 0x40373b
lea eax, [esp + 0xd8]
mov edx, ebp
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403653
jmp 0x40373b
cmp ecx, 5
jne 0x403716
cmp eax, 2
je 0x403746
cmp eax, 1
jne 0x4036bf
push ebx
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00401d90
mov al, byte [esp + 0xe4]
add esp, 0xc
test al, al
je 0x40373b
lea eax, [esp + 0xd8]
mov edx, ebp
mov ecx, eax
sub edx, ecx
jmp 0x4036b0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4036b0
jmp 0x40373b
test eax, eax
jne 0x403746
mov eax, dword [esp + 0xb0]
test ah, 2
mov edx, ebp
je 0x4036ed
mov eax, dword [str.Home]
mov dword [edx], eax
mov cl, byte [0x41742c]
mov byte [edx + 4], cl
mov dword [ebx], 0x33
jmp 0x403746
mov eax, dword [str.Professional]
mov dword [edx], eax
mov ecx, dword [0x417410]
mov dword [edx + 4], ecx
mov eax, dword [0x417414]
mov dword [edx + 8], eax
mov cl, byte [0x417418]
mov byte [edx + 0xc], cl
mov dword [ebx], 0x34
jmp 0x403746
cmp ecx, 4
ja 0x403746
mov eax, dword [str.Workstation]
mov edx, ebp
mov dword [edx], eax
mov ecx, dword [0x417bf0]
mov dword [edx + 4], ecx
mov eax, dword [0x417bf4]
mov dword [edx + 8], eax
mov dword [ebx], 0x29
cmp dword [esp + 0x1c], 4
jbe 0x403dde
mov edi, ebp
dec edi
cmp word [esp + 0xb4], 9
jne 0x403783
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403754
mov ecx, dword [str._x64_Edition]
mov dword [edi], ecx
mov edx, dword [0x417be0]
mov dword [edi + 4], edx
mov eax, dword [0x417be4]
mov dword [edi + 8], eax
mov cl, byte [0x417be8]
mov byte [edi + 0xc], cl
jmp 0x403dd9
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403783
jmp 0x403838
cmp cl, 3
je 0x40379e
cmp cl, 2
jne 0x403dd9
mov ecx, dword [esp + 0x1c]
cmp ecx, 6
jb 0x403856
cmp eax, 1
jne 0x4037b9
mov dword [ebp], 0x203252
jmp 0x4037bd
mov byte [ebp], 0
push ebx
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00401eb0
mov al, byte [esp + 0xe4]
add esp, 0xc
test al, al
je 0x40380b
lea eax, [esp + 0xd8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4037e7
mov edi, ebp
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4037f3
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
dec edi
cmp word [esp + 0xb4], 9
jne 0x403830
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403820
jmp 0x40375c
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403830
mov edx, dword [str._Edition]
mov dword [edi], edx
mov eax, dword [0x417bd4]
mov dword [edi + 4], eax
mov cl, byte [0x417bd8]
mov byte [edi + 8], cl
jmp 0x403dd9
cmp ecx, 5
jne 0x403c40
cmp eax, 2
jne 0x403b58
mov ax, word [esp + 0xb4]
cmp ax, 6
jne 0x4038c8
mov al, byte [esp + 0xb0]
test al, al
jns 0x40389f
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403884
mov ecx, 0xb
mov esi, str._Datacenter_Edition_for_Itanium_based_Systems
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x40391f
test al, 2
je 0x40391f
mov edi, ebp
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4038b0
mov ecx, 0xb
mov esi, str._Enterprise_Edition_for_Itanium_based_Systems
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
jmp 0x40391f
cmp ax, 9
jne 0x403a12
mov al, byte [esp + 0xb0]
mov edi, ebp
dec edi
test al, al
jns 0x403988
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4038e4
mov edx, dword [str._Datacenter_x64_Edition]
mov dword [edi], edx
mov eax, dword [0x417b5c]
mov dword [edi + 4], eax
mov ecx, dword [0x417b60]
mov dword [edi + 8], ecx
mov edx, dword [0x417b64]
mov dword [edi + 0xc], edx
mov eax, dword [0x417b68]
mov dword [edi + 0x10], eax
mov ecx, dword [0x417b6c]
mov dword [edi + 0x14], ecx
mov edx, dword [esp + 0x24]
and edx, 0xffff
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xe0]
push str.__s_Build__d
push ecx
call fcn.0040c706
lea eax, [esp + 0xe8]
add esp, 0x10
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403950
sub eax, edx
dec ebp
mov edi, ebp
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403960
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1d0
ret
test al, 2
je 0x4039d0
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403990
mov edx, dword [str._Enterprise_x64_Edition]
mov dword [edi], edx
mov eax, dword [0x417b34]
mov dword [edi + 4], eax
mov ecx, dword [0x417b38]
mov dword [edi + 8], ecx
mov edx, dword [0x417b3c]
mov dword [edi + 0xc], edx
mov eax, dword [0x417b40]
mov dword [edi + 0x10], eax
mov ecx, dword [0x417b44]
jmp 0x40391c
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4039d0
mov edx, dword [str._Standard_x64_Edition]
mov dword [edi], edx
mov eax, dword [0x417b1c]
mov dword [edi + 4], eax
mov ecx, dword [0x417b20]
mov dword [edi + 8], ecx
mov edx, dword [0x417b24]
mov dword [edi + 0xc], edx
mov eax, dword [0x417b28]
mov dword [edi + 0x10], eax
mov cx, word [0x417b2c]
mov word [edi + 0x14], cx
jmp 0x40391f
mov eax, dword [esp + 0xb0]
test al, al
jns 0x403a5d
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403a20
mov edx, dword [str._Datacenter_Edition]
mov dword [edi], edx
mov eax, dword [0x417b08]
mov dword [edi + 4], eax
mov ecx, dword [0x417b0c]
mov dword [edi + 8], ecx
mov edx, dword [0x417b10]
mov dword [edi + 0xc], edx
mov eax, dword [0x417b14]
mov dword [edi + 0x10], eax
mov dword [ebx], 0x4a
jmp 0x40391f
test al, 2
je 0x403ab2
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403a64
mov ecx, dword [str._Enterprise_Edition]
mov dword [edi], ecx
mov edx, dword [0x417af4]
mov dword [edi + 4], edx
mov eax, dword [0x417af8]
mov dword [edi + 8], eax
mov ecx, dword [0x417afc]
mov dword [edi + 0xc], ecx
mov edx, dword [0x417b00]
push 0
mov dword [edi + 0x10], edx
call fcn.004024e0
add esp, 4
neg eax
sbb eax, eax
and eax, 6
add eax, 0x48
mov dword [ebx], eax
jmp 0x403dd9
test ah, 4
je 0x403af4
mov edi, ebp
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403ac0
mov eax, dword [str._Web_Edition]
mov dword [edi], eax
mov ecx, dword [0x417ae4]
mov dword [edi + 4], ecx
mov edx, dword [0x417ae8]
mov dword [edi + 8], edx
mov al, byte [0x417aec]
mov byte [edi + 0xc], al
mov dword [ebx], 0x49
jmp 0x40391f
test al, 0x20
jne 0x40391f
test ah, 0x20
jne 0x40391f
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403b08
mov ecx, dword [str._Standard_Edition]
mov dword [edi], ecx
mov edx, dword [0x417ad0]
mov dword [edi + 4], edx
mov eax, dword [0x417ad4]
mov dword [edi + 8], eax
mov ecx, dword [0x417ad8]
mov dword [edi + 0xc], ecx
mov dx, word [0x417adc]
push 0
mov word [edi + 0x10], dx
call fcn.004024e0
add esp, 4
neg eax
sbb eax, eax
and eax, 6
add eax, 0x47
mov dword [ebx], eax
jmp 0x403dd9
test eax, eax
jne 0x403c40
mov al, byte [esp + 0xb0]
test al, al
jns 0x403ba6
mov ecx, dword [str.Datacenter_Server]
mov eax, ebp
mov dword [eax], ecx
mov edx, dword [0x417abc]
mov dword [eax + 4], edx
mov ecx, dword [0x417ac0]
mov dword [eax + 8], ecx
mov edx, dword [0x417ac4]
mov dword [eax + 0xc], edx
mov cx, word [0x417ac8]
mov word [eax + 0x10], cx
mov dword [ebx], 0x37
jmp 0x40391f
test al, 2
mov edx, ebp
je 0x403bd8
mov eax, dword [str.Advanced_Server]
mov dword [edx], eax
mov ecx, dword [0x417aac]
mov dword [edx + 4], ecx
mov eax, dword [0x417ab0]
mov dword [edx + 8], eax
mov ecx, dword [0x417ab4]
mov dword [edx + 0xc], ecx
mov dword [ebx], 0x36
jmp 0x40391f
test al, 0x20
je 0x403c1b
mov eax, dword [str.Small_Business_Server]
mov dword [edx], eax
mov ecx, dword [0x4175f8]
mov dword [edx + 4], ecx
mov eax, dword [0x4175fc]
mov dword [edx + 8], eax
mov ecx, dword [0x417600]
mov dword [edx + 0xc], ecx
mov eax, dword [0x417604]
mov dword [edx + 0x10], eax
mov cx, word [0x417608]
mov word [edx + 0x14], cx
mov dword [ebx], 0x38
jmp 0x40391f
mov eax, dword [str.Server]
mov dword [edx], eax
mov cx, word [0x417c0c]
mov word [edx + 4], cx
mov al, byte [0x417c0e]
mov byte [edx + 6], al
mov dword [ebx], 0x35
jmp 0x40391f
mov al, byte [esp + 0xb0]
test al, 0x10
je 0x403c79
mov edx, dword [str.Terminal_Server]
mov ecx, ebp
mov dword [ecx], edx
mov eax, dword [0x417a9c]
mov dword [ecx + 4], eax
mov edx, dword [0x417aa0]
mov dword [ecx + 8], edx
mov eax, dword [0x417aa4]
mov dword [ecx + 0xc], eax
mov dword [ebx], 0x2d
jmp 0x403dd9
test al, 2
je 0x403c99
mov ecx, 6
mov esi, str.Server__Enterprise_Edition
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebx], 0x2c
jmp 0x403dd9
mov edx, dword [str.Server]
mov ecx, ebp
mov dword [ecx], edx
mov ax, word [0x417c0c]
mov word [ecx + 4], ax
mov dl, byte [0x417c0e]
mov byte [ecx + 6], dl
mov dword [ebx], 0x2a
jmp 0x403dd9
lea eax, [esp + 0x14]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
mov edi, 0x104
push 0x80000002
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403ec3
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xdc]
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.ProductType
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x403ec3
cmp dword [esp + 0x10], edi
ja 0x403ec3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0xd8]
push edx
push str.WINNT
call esi
test eax, eax
jne 0x403d64
mov ecx, dword [str.Workstation]
mov eax, ebp
mov dword [eax], ecx
mov edx, dword [0x417bf0]
mov dword [eax + 4], edx
mov ecx, dword [0x417bf4]
mov dword [eax + 8], ecx
mov dword [ebx], 0x29
lea edx, [esp + 0xd8]
push edx
push str.LANMANNT
call esi
test eax, eax
jne 0x403d9b
mov ecx, dword [str.Server]
mov eax, ebp
mov dword [eax], ecx
mov dx, word [0x417c0c]
mov word [eax + 4], dx
mov cl, byte [0x417c0e]
mov byte [eax + 6], cl
mov dword [ebx], 0x2a
lea edx, [esp + 0xd8]
push edx
push str.SERVERNT
call esi
test eax, eax
jne 0x403dd9
mov ecx, dword [str.Advanced_Server]
mov eax, ebp
mov dword [eax], ecx
mov edx, dword [0x417aac]
mov dword [eax + 4], edx
mov ecx, dword [0x417ab0]
mov dword [eax + 8], ecx
mov edx, dword [0x417ab4]
mov dword [eax + 0xc], edx
mov dword [ebx], 0x2b
cmp dword [esp + 0x1c], 4
jne 0x40391f
push str.Service_Pack_6
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40391f
lea ecx, [esp + 0x10]
push ecx
push 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
lea eax, [esp + 0xd8]
jne 0x403e5a
mov edx, dword [esp + 0x24]
and edx, 0xffff
push edx
push str._Service_Pack_6a_Build__d
push eax
call fcn.0040c706
lea eax, [esp + 0xe4]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e41
sub eax, edx
dec ebp
mov edi, ebp
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403e50
jmp 0x403e98
mov ecx, dword [esp + 0x24]
and ecx, 0xffff
push ecx
lea edx, [esp + 0x30]
push edx
push str.__s_Build__d
push eax
call fcn.0040c706
lea eax, [esp + 0xe8]
add esp, 0x10
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e81
sub eax, edx
dec ebp
mov edi, ebp
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403e90
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1d0
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1d0
ret
cmp dword [esp + 0x1c], 4
jne 0x40405d
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x403f5c
mov dx, word [0x4179b4]
mov word [esi], dx
mov al, byte [0x4179b6]
mov byte [esi + 2], al
mov al, byte [esp + 0x2d]
cmp al, 0x43
mov dword [ebx], 0xa
je 0x403f33
cmp al, 0x42
je 0x403f33
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push ecx
push edx
push str.Build__d__s
push ebp
call fcn.0040c706
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1d0
ret
mov eax, dword [esp + 0x24]
push eax
push str.OSR2_Build__d
push ebp
call fcn.0040c706
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], 0xb
mov eax, 1
pop ebx
add esp, 0x1d0
ret
cmp eax, 0xa
jne 0x403fdb
mov cx, word [0x417994]
mov al, byte [esp + 0x2d]
cmp al, 0x41
mov word [esi], cx
mov dl, byte [0x417996]
mov byte [esi + 2], dl
mov dword [ebx], 0x14
je 0x403fb2
cmp al, 0x42
je 0x403fb2
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x2c]
push eax
push ecx
push str.Build__d__s
push ebp
call fcn.0040c706
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1d0
ret
mov edx, dword [esp + 0x24]
push edx
push str.SE_Build__d
push ebp
call fcn.0040c706
add esp, 0xc
pop edi
pop esi
pop ebp
mov dword [ebx], 0x15
mov eax, 1
pop ebx
add esp, 0x1d0
ret
cmp eax, 0x5a
jne 0x40405d
mov ax, word [0x417984]
mov word [esi], ax
mov eax, dword [esp + 0x24]
mov cl, byte [0x417986]
lea edx, [esp + 0x2c]
push edx
push eax
push str.Build__d__s
push ebp
mov byte [esi + 2], cl
call fcn.0040c706
add esp, 0x10
pop edi
pop esi
pop ebp
mov dword [ebx], 0x1e
mov eax, 1
pop ebx
add esp, 0x1d0
ret
mov ecx, dword [str.Win32s]
mov dword [esi], ecx
mov dx, word [0x417980]
mov word [esi + 4], dx
mov edx, dword [esp + 0x24]
mov al, byte [0x417982]
lea ecx, [esp + 0x2c]
push ecx
push edx
push str.Build__d__s
push ebp
mov byte [esi + 6], al
call fcn.0040c706
mov dword [ebx], 0x5a
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1d0
ret