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

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x42cb90]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
mov ebx, dword [esp + 0x1e0]
push ebp
mov ebp, dword [esp + 0x1e8]
push esi
mov esi, dword [esp + 0x1e4]
push edi
mov byte [esi], 0
lea eax, [esp + 0x18]
mov byte [ebx], 0
push eax
mov dword [ebp], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x9c
lea ecx, [esp + 0x40]
push 0
push ecx
call fcn.0040eb90
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], 0x9c
call edi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x4057e0
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x40], 0x94
call edi
test eax, eax
jne 0x4057e0
xor eax, eax
jmp 0x4064c5
mov eax, dword [esp + 0x4c]
sub eax, 0
je 0x406486
sub eax, 1
je 0x40637a
sub eax, 1
jne 0x4064c0
mov ecx, dword [esp + 0x40]
cmp ecx, 6
jb 0x40589c
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 0x40582e
lea ecx, [esp + 0x18]
push ecx
call eax
cmp byte [esp + 0xd6], 1
mov eax, dword [esp + 0x44]
jne 0x40586b
test eax, eax
jne 0x405858
mov edx, dword [str.Vista]
mov dword [esi], edx
mov cx, word [0x424600]
mov word [esi + 4], cx
jmp 0x405aaa
xor edx, edx
cmp eax, 1
setne dl
add edx, 0x37
mov word [esi], dx
jmp 0x405aaa
cmp eax, 1
ja 0x405886
mov ecx, dword [str.2008]
mov dword [esi], ecx
mov dl, byte [0x4245f8]
mov byte [esi + 4], dl
jmp 0x405aaa
mov ecx, dword [str.2012]
mov dword [esi], ecx
mov dl, byte [0x4245f0]
mov byte [esi + 4], dl
jmp 0x405aaa
cmp ecx, 5
mov eax, dword [esp + 0x44]
jne 0x405a85
cmp eax, 2
jne 0x405a54
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 0x4058d4
lea ecx, [esp + 0x18]
push ecx
call eax
cmp byte [esp + 0xd6], 1
jne 0x40591e
mov dx, word [0x4245e8]
mov word [esi], dx
mov al, byte [0x4245ea]
mov byte [esi + 2], al
mov ecx, dword [str.Professional]
mov dword [ebx], ecx
mov edx, dword [0x423dac]
mov dword [ebx + 4], edx
mov eax, dword [0x423db0]
mov dword [ebx + 8], eax
mov cl, byte [0x423db4]
mov byte [ebx + 0xc], cl
mov dword [ebp], 0x42
jmp 0x405aa6
mov edx, dword [str.2003]
mov dword [esi], edx
mov al, byte [0x4245e4]
mov byte [esi + 4], al
mov eax, dword [esp + 0xd4]
test al, 0x20
je 0x4059ab
mov ecx, dword [str.Small_Business_Server]
mov dword [ebx], ecx
mov edx, dword [0x424170]
mov dword [ebx + 4], edx
mov eax, dword [0x424174]
mov dword [ebx + 8], eax
mov ecx, dword [0x424178]
mov dword [ebx + 0xc], ecx
mov edx, dword [0x42417c]
mov dword [ebx + 0x10], edx
mov ax, word [0x424180]
push 1
mov word [ebx + 0x14], ax
call fcn.00403d70
add esp, 4
test eax, eax
je 0x40599f
mov edi, ebx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x405981
mov ecx, dword [0x4245dc]
mov dword [edi], ecx
mov dword [ebp], 0x4f
jmp 0x405aa6
mov dword [ebp], 0x4c
jmp 0x405aa6
test eax, 0x2000
push 0
je 0x405a0f
mov edx, dword [str.Storage_Server]
mov dword [ebx], edx
mov eax, dword [0x4245d0]
mov dword [ebx + 4], eax
mov ecx, dword [0x4245d4]
mov dword [ebx + 8], ecx
mov dx, word [0x4245d8]
mov word [ebx + 0xc], dx
mov al, byte [0x4245da]
mov byte [ebx + 0xe], al
call fcn.00403d70
add esp, 4
test eax, eax
je 0x405a03
mov edi, ebx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4059f1
mov ecx, dword [0x4245dc]
mov dword [edi], ecx
mov dword [ebp], 0x4b
jmp 0x405aa6
mov edx, dword [str.Server]
mov dword [ebx], edx
mov ax, word [0x4245c8]
mov word [ebx + 4], ax
mov cl, byte [0x4245ca]
mov byte [ebx + 6], cl
call fcn.00403d70
add esp, 4
test eax, eax
je 0x405aa6
mov edi, ebx
add edi, 0xffffffff
jmp 0x405a40
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x405a40
mov edx, dword [0x4245dc]
mov dword [edi], edx
jmp 0x405aa6
cmp eax, 1
jne 0x405a6e
mov cx, word [0x4245e8]
mov word [esi], cx
mov dl, byte [0x4245ea]
mov byte [esi + 2], dl
jmp 0x405aaa
test eax, eax
jne 0x405a96
mov ecx, dword [str.2000]
mov dword [esi], ecx
mov dl, byte [0x4245c0]
mov byte [esi + 4], dl
jmp 0x405aaa
cmp ecx, 4
jne 0x405a96
test eax, eax
jne 0x405a96
mov dword [esi], 0x34544e
jmp 0x405aaa
push eax
push ecx
push str.NT_d._d
push esi
call fcn.0041025a
add esp, 0x10
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x10], 0
je 0x40618f
mov cl, byte [esp + 0xd6]
cmp cl, 1
jne 0x405c45
mov ecx, dword [esp + 0x40]
cmp ecx, 6
jb 0x405b11
push ebp
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00404490
add esp, 0xc
cmp byte [esp + 0xd8], 0
je 0x405bec
lea eax, [esp + 0xd8]
mov edx, ebx
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x405b00
jmp 0x405bec
cmp ecx, 5
jne 0x405bc7
cmp eax, 2
je 0x405bf7
cmp eax, 1
jne 0x405b6e
push ebp
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.00403ba0
add esp, 0xc
cmp byte [esp + 0xd8], 0
je 0x405bec
lea eax, [esp + 0xd8]
mov edx, ebx
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x405b60
jmp 0x405bec
test eax, eax
jne 0x405bf7
test dword [esp + 0xd4], 0x200
je 0x405b9c
mov edx, dword [str.Home]
mov dword [ebx], edx
mov al, byte [0x423dc8]
mov byte [ebx + 4], al
mov dword [ebp], 0x33
jmp 0x405bf7
mov ecx, dword [str.Professional]
mov dword [ebx], ecx
mov edx, dword [0x423dac]
mov dword [ebx + 4], edx
mov eax, dword [0x423db0]
mov dword [ebx + 8], eax
mov cl, byte [0x423db4]
mov byte [ebx + 0xc], cl
mov dword [ebp], 0x34
jmp 0x405bf7
cmp ecx, 4
ja 0x405bf7
mov edx, dword [str.Workstation]
mov dword [ebx], edx
mov eax, dword [0x4245ac]
mov dword [ebx + 4], eax
mov ecx, dword [0x4245b0]
mov dword [ebx + 8], ecx
mov dword [ebp], 0x29
cmp dword [esp + 0x40], 4
jbe 0x4062a6
mov eax, ebx
add eax, 0xffffffff
cmp word [esp + 0x18], 9
jne 0x405c36
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405c04
mov edx, dword [str._x64_Edition]
mov dword [eax], edx
mov ecx, dword [0x42459c]
mov dword [eax + 4], ecx
mov edx, dword [0x4245a0]
mov dword [eax + 8], edx
mov cl, byte [0x4245a4]
mov byte [eax + 0xc], cl
jmp 0x4062a1
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405c36
jmp 0x405cee
cmp cl, 3
je 0x405c53
cmp cl, 2
jne 0x4062a1
mov ecx, dword [esp + 0x40]
cmp ecx, 6
jb 0x405d0d
cmp eax, 1
jne 0x405c6d
mov dword [ebx], 0x203252
jmp 0x405c70
mov byte [ebx], 0
push ebp
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00404810
add esp, 0xc
cmp byte [esp + 0xd8], 0
je 0x405cc8
lea eax, [esp + 0xd8]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405ca0
mov edi, ebx
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x405cb0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, ebx
add eax, 0xffffffff
cmp word [esp + 0x18], 9
jne 0x405ce4
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405cd5
jmp 0x405c0e
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405ce4
mov edx, dword [str._Edition]
mov dword [eax], edx
mov ecx, dword [0x424590]
mov dword [eax + 4], ecx
mov dl, byte [0x424594]
mov byte [eax + 8], dl
jmp 0x4062a1
cmp ecx, 5
jne 0x40610e
cmp eax, 2
jne 0x406025
mov ax, word [esp + 0x18]
cmp ax, 6
jne 0x405dce
mov al, byte [esp + 0xd4]
test al, al
jns 0x405daf
mov edi, ebx
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x405d40
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]
movzx edx, word [esp + 0x48]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xe0]
push str.__s_Build__d
push ecx
call fcn.0041025a
lea eax, [esp + 0xe8]
add esp, 0x10
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x405d81
sub eax, esi
add ebx, 0xffffffff
nop
mov cl, byte [ebx + 1]
add ebx, 1
test cl, cl
jne 0x405d90
mov ecx, eax
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4064c0
test al, 2
je 0x405d58
mov edi, ebx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x405db8
mov ecx, 0xb
mov esi, str._Enterprise_Edition_for_Itanium_based_Systems
jmp 0x405d54
cmp ax, 9
jne 0x405ec6
mov al, byte [esp + 0xd4]
test al, al
jns 0x405e2c
mov eax, ebx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405de8
mov ecx, dword [str._Datacenter_x64_Edition]
mov dword [eax], ecx
mov edx, dword [0x424508]
mov dword [eax + 4], edx
mov ecx, dword [0x42450c]
mov dword [eax + 8], ecx
mov edx, dword [0x424510]
mov dword [eax + 0xc], edx
mov ecx, dword [0x424514]
mov dword [eax + 0x10], ecx
mov edx, dword [0x424518]
mov dword [eax + 0x14], edx
jmp 0x405d58
test al, 2
mov eax, ebx
je 0x405e79
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405e35
mov ecx, dword [str._Enterprise_x64_Edition]
mov dword [eax], ecx
mov edx, dword [0x4244f0]
mov dword [eax + 4], edx
mov ecx, dword [0x4244f4]
mov dword [eax + 8], ecx
mov edx, dword [0x4244f8]
mov dword [eax + 0xc], edx
mov ecx, dword [0x4244fc]
mov dword [eax + 0x10], ecx
mov edx, dword [0x424500]
mov dword [eax + 0x14], edx
jmp 0x405d58
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405e80
mov ecx, dword [str._Standard_x64_Edition]
mov dword [eax], ecx
mov edx, dword [0x4244d8]
mov dword [eax + 4], edx
mov ecx, dword [0x4244dc]
mov dword [eax + 8], ecx
mov edx, dword [0x4244e0]
mov dword [eax + 0xc], edx
mov ecx, dword [0x4244e4]
mov dword [eax + 0x10], ecx
mov dx, word [0x4244e8]
mov word [eax + 0x14], dx
jmp 0x405d58
mov eax, dword [esp + 0xd4]
test al, al
jns 0x405f18
mov eax, ebx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405ed6
mov ecx, dword [str._Datacenter_Edition]
mov dword [eax], ecx
mov edx, dword [0x4244c4]
mov dword [eax + 4], edx
mov ecx, dword [0x4244c8]
mov dword [eax + 8], ecx
mov edx, dword [0x4244cc]
mov dword [eax + 0xc], edx
mov ecx, dword [0x4244d0]
mov dword [eax + 0x10], ecx
mov dword [ebp], 0x4a
jmp 0x405d58
test al, 2
je 0x405f73
mov eax, ebx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405f21
mov edx, dword [str._Enterprise_Edition]
mov dword [eax], edx
mov ecx, dword [0x4244b0]
mov dword [eax + 4], ecx
mov edx, dword [0x4244b4]
mov dword [eax + 8], edx
mov ecx, dword [0x4244b8]
mov dword [eax + 0xc], ecx
mov edx, dword [0x4244bc]
push 0
mov dword [eax + 0x10], edx
call fcn.00403d70
add esp, 4
neg eax
sbb eax, eax
and eax, 6
add eax, 0x48
mov dword [ebp], eax
jmp 0x4062a1
test eax, 0x400
je 0x405fb9
mov eax, ebx
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405f80
mov ecx, dword [str._Web_Edition]
mov dword [eax], ecx
mov edx, dword [0x4244a0]
mov dword [eax + 4], edx
mov ecx, dword [0x4244a4]
mov dword [eax + 8], ecx
mov dl, byte [0x4244a8]
mov byte [eax + 0xc], dl
mov dword [ebp], 0x49
jmp 0x405d58
test al, 0x20
jne 0x405d58
test eax, 0x2000
jne 0x405d58
mov eax, ebx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x405fd1
mov ecx, dword [str._Standard_Edition]
mov dword [eax], ecx
mov edx, dword [0x42448c]
mov dword [eax + 4], edx
mov ecx, dword [0x424490]
mov dword [eax + 8], ecx
mov edx, dword [0x424494]
mov dword [eax + 0xc], edx
mov cx, word [0x424498]
push 0
mov word [eax + 0x10], cx
call fcn.00403d70
add esp, 4
neg eax
sbb eax, eax
and eax, 6
add eax, 0x47
mov dword [ebp], eax
jmp 0x4062a1
test eax, eax
jne 0x40610e
mov al, byte [esp + 0xd4]
test al, al
jns 0x406070
mov edx, dword [str.Datacenter_Server]
mov dword [ebx], edx
mov eax, dword [0x424478]
mov dword [ebx + 4], eax
mov ecx, dword [0x42447c]
mov dword [ebx + 8], ecx
mov edx, dword [0x424480]
mov dword [ebx + 0xc], edx
mov ax, word [0x424484]
mov word [ebx + 0x10], ax
mov dword [ebp], 0x37
jmp 0x405d58
test al, 2
je 0x4060a2
mov ecx, dword [str.Advanced_Server]
mov dword [ebx], ecx
mov edx, dword [0x424468]
mov dword [ebx + 4], edx
mov eax, dword [0x42446c]
mov dword [ebx + 8], eax
mov ecx, dword [0x424470]
mov dword [ebx + 0xc], ecx
mov dword [ebp], 0x36
jmp 0x405d58
test al, 0x20
je 0x4060e7
mov edx, dword [str.Small_Business_Server]
mov dword [ebx], edx
mov eax, dword [0x424170]
mov dword [ebx + 4], eax
mov ecx, dword [0x424174]
mov dword [ebx + 8], ecx
mov edx, dword [0x424178]
mov dword [ebx + 0xc], edx
mov eax, dword [0x42417c]
mov dword [ebx + 0x10], eax
mov cx, word [0x424180]
mov word [ebx + 0x14], cx
mov dword [ebp], 0x38
jmp 0x405d58
mov edx, dword [str.Server]
mov dword [ebx], edx
mov ax, word [0x4245c8]
mov word [ebx + 4], ax
mov cl, byte [0x4245ca]
mov byte [ebx + 6], cl
mov dword [ebp], 0x35
jmp 0x405d58
mov al, byte [esp + 0xd4]
test al, 0x10
je 0x406147
mov edx, dword [str.Terminal_Server]
mov dword [ebx], edx
mov eax, dword [0x424458]
mov dword [ebx + 4], eax
mov ecx, dword [0x42445c]
mov dword [ebx + 8], ecx
mov edx, dword [0x424460]
mov dword [ebx + 0xc], edx
mov dword [ebp], 0x2d
jmp 0x4062a1
test al, 2
je 0x406168
mov ecx, 6
mov esi, str.Server__Enterprise_Edition
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp], 0x2c
jmp 0x4062a1
mov eax, dword [str.Server]
mov dword [ebx], eax
mov cx, word [0x4245c8]
mov word [ebx + 4], cx
mov dl, byte [0x4245ca]
mov byte [ebx + 6], dl
mov dword [ebp], 0x2a
jmp 0x4062a1
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 0x4057d9
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 0x4057d9
cmp dword [esp + 0x10], edi
ja 0x4057d9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0xd8]
push edx
push str.WINNT
call esi
test eax, eax
jne 0x406230
mov eax, dword [str.Workstation]
mov dword [ebx], eax
mov ecx, dword [0x4245ac]
mov dword [ebx + 4], ecx
mov edx, dword [0x4245b0]
mov dword [ebx + 8], edx
mov dword [ebp], 0x29
lea eax, [esp + 0xd8]
push eax
push str.LANMANNT
call esi
test eax, eax
jne 0x406265
mov ecx, dword [str.Server]
mov dword [ebx], ecx
mov dx, word [0x4245c8]
mov word [ebx + 4], dx
mov al, byte [0x4245ca]
mov byte [ebx + 6], al
mov dword [ebp], 0x2a
lea ecx, [esp + 0xd8]
push ecx
push str.SERVERNT
call esi
test eax, eax
jne 0x4062a1
mov edx, dword [str.Advanced_Server]
mov dword [ebx], edx
mov eax, dword [0x424468]
mov dword [ebx + 4], eax
mov ecx, dword [0x42446c]
mov dword [ebx + 8], ecx
mov edx, dword [0x424470]
mov dword [ebx + 0xc], edx
mov dword [ebp], 0x2b
cmp dword [esp + 0x40], 4
jne 0x405d58
push str.Service_Pack_6
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405d58
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 0x40631e
movzx edx, word [esp + 0x48]
push edx
push str._Service_Pack_6a_Build__d
push eax
call fcn.0041025a
lea eax, [esp + 0xe4]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406304
sub eax, esi
add ebx, 0xffffffff
mov cl, byte [ebx + 1]
add ebx, 1
test cl, cl
jne 0x406312
jmp 0x40635a
movzx ecx, word [esp + 0x48]
push ecx
lea edx, [esp + 0x54]
push edx
push str.__s_Build__d
push eax
call fcn.0041025a
lea eax, [esp + 0xe8]
add esp, 0x10
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x406340
sub eax, esi
add ebx, 0xffffffff
mov edi, edi
mov cl, byte [ebx + 1]
add ebx, 1
test cl, cl
jne 0x406350
mov ecx, eax
shr ecx, 2
mov edi, ebx
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]
jmp 0x4064c0
cmp dword [esp + 0x40], 4
jne 0x4064c0
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4063ed
mov dx, word [0x424370]
mov word [esi], dx
movzx eax, byte [0x424372]
mov byte [esi + 2], al
mov al, byte [esp + 0x51]
cmp al, 0x43
mov dword [ebp], 0xa
je 0x4063ce
cmp al, 0x42
je 0x4063ce
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x50]
push ecx
push edx
push str.Build__d__s
push ebx
call fcn.0041025a
jmp 0x4064bd
mov eax, dword [esp + 0x48]
push eax
push str.OSR2_Build__d
push ebx
call fcn.0041025a
add esp, 0xc
mov dword [ebp], 0xb
jmp 0x4064c0
cmp eax, 0xa
jne 0x406451
mov cx, word [0x424350]
mov al, byte [esp + 0x51]
cmp al, 0x41
mov word [esi], cx
mov dl, byte [0x424352]
mov byte [esi + 2], dl
mov dword [ebp], 0x14
je 0x406432
cmp al, 0x42
je 0x406432
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x50]
push eax
push ecx
push str.Build__d__s
push ebx
call fcn.0041025a
jmp 0x4064bd
mov edx, dword [esp + 0x48]
push edx
push str.SE_Build__d
push ebx
call fcn.0041025a
add esp, 0xc
mov dword [ebp], 0x15
jmp 0x4064c0
cmp eax, 0x5a
jne 0x4064c0
mov ax, word [0x424340]
mov word [esi], ax
mov eax, dword [esp + 0x48]
mov cl, byte [0x424342]
lea edx, [esp + 0x50]
push edx
push eax
push str.Build__d__s
push ebx
mov byte [esi + 2], cl
call fcn.0041025a
mov dword [ebp], 0x1e
jmp 0x4064bd
mov ecx, dword [str.Win32s]
mov dword [esi], ecx
mov dx, word [0x42433c]
mov word [esi + 4], dx
mov edx, dword [esp + 0x48]
mov al, byte [0x42433e]
lea ecx, [esp + 0x50]
push ecx
push edx
push str.Build__d__s
push ebx
mov byte [esi + 6], al
call fcn.0041025a
mov dword [ebp], 0x5a
add esp, 0x10
mov eax, 1
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040f6db
add esp, 0x1d4
ret