Function at 0x408e00
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x435e80]
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]
mov byte [esi], 0
lea eax, [esp + 0x14]
mov byte [ebx], 0
push eax
mov dword [ebp], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x9c
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.00412590
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x48], 0x9c
call fcn.00408db0
add esp, 0x10
test eax, eax
mov dword [esp + 0xc], eax
jne 0x408ea3
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x3c], 0x94
call fcn.00408db0
add esp, 4
test eax, eax
jne 0x408ea3
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.00412a21
add esp, 0x1d4
ret
mov eax, dword [esp + 0x48]
sub eax, 0
push edi
je 0x409b71
sub eax, 1
je 0x409a61
sub eax, 1
jne 0x409bab
mov ecx, dword [esp + 0x40]
cmp ecx, 6
jb 0x408f76
push str.GetNativeSystemInfo
push 0x42af30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408ef2
lea ecx, [esp + 0x18]
push ecx
call eax
cmp byte [esp + 0xd6], 1
mov eax, dword [esp + 0x44]
jne 0x408f45
test eax, eax
jne 0x408f1c
mov edx, dword [str.Vista]
mov dword [esi], edx
mov cx, word [0x42b7d4]
mov word [esi + 4], cx
jmp 0x409189
cmp eax, 1
jne 0x408f2b
mov word [esi], 0x37
jmp 0x409189
cmp eax, 2
jne 0x408f3a
mov word [esi], 0x38
jmp 0x409189
mov dword [esi], 0x312e38
jmp 0x409189
cmp eax, 1
ja 0x408f60
mov edx, dword [str.2008]
mov dword [esi], edx
mov cl, byte [0x42b7cc]
mov byte [esi + 4], cl
jmp 0x409189
mov edx, dword [str.2012]
mov dword [esi], edx
mov cl, byte [0x42b7c4]
mov byte [esi + 4], cl
jmp 0x409189
cmp ecx, 5
mov eax, dword [esp + 0x44]
jne 0x409164
cmp eax, 2
jne 0x409133
push str.GetNativeSystemInfo
push 0x42af30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408fae
lea edx, [esp + 0x18]
push edx
call eax
cmp byte [esp + 0xd6], 1
jne 0x408ff8
mov ax, word [0x42b7bc]
mov word [esi], ax
mov cl, byte [0x42b7be]
mov byte [esi + 2], cl
mov edx, dword [str.Professional]
mov dword [ebx], edx
mov eax, dword [0x42af58]
mov dword [ebx + 4], eax
mov ecx, dword [0x42af5c]
mov dword [ebx + 8], ecx
mov dl, byte [0x42af60]
mov byte [ebx + 0xc], dl
mov dword [ebp], 0x42
jmp 0x409185
mov eax, dword [str.2003]
mov dword [esi], eax
mov eax, dword [esp + 0xd4]
test al, 0x20
mov cl, byte [0x42b7b8]
mov byte [esi + 4], cl
je 0x40908a
mov edx, dword [str.Small_Business_Server]
mov dword [ebx], edx
mov eax, dword [0x42b344]
mov dword [ebx + 4], eax
mov ecx, dword [0x42b348]
mov dword [ebx + 8], ecx
mov edx, dword [0x42b34c]
mov dword [ebx + 0xc], edx
mov eax, dword [0x42b350]
mov dword [ebx + 0x10], eax
mov cx, word [0x42b354]
push 1
mov word [ebx + 0x14], cx
call fcn.004072a0
add esp, 4
test eax, eax
je 0x40907e
mov edi, ebx
add edi, 0xffffffff
jmp 0x409060
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x409060
mov edx, dword [0x42b7b0]
mov dword [edi], edx
mov dword [ebp], 0x4f
jmp 0x409185
mov dword [ebp], 0x4c
jmp 0x409185
test eax, 0x2000
push 0
je 0x4090ee
mov eax, dword [str.Storage_Server]
mov dword [ebx], eax
mov ecx, dword [0x42b7a4]
mov dword [ebx + 4], ecx
mov edx, dword [0x42b7a8]
mov dword [ebx + 8], edx
mov ax, word [0x42b7ac]
mov word [ebx + 0xc], ax
mov cl, byte [0x42b7ae]
mov byte [ebx + 0xe], cl
call fcn.004072a0
add esp, 4
test eax, eax
je 0x4090e2
mov edi, ebx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4090d0
mov edx, dword [0x42b7b0]
mov dword [edi], edx
mov dword [ebp], 0x4b
jmp 0x409185
mov eax, dword [str.Server]
mov dword [ebx], eax
mov cx, word [0x42b79c]
mov word [ebx + 4], cx
mov dl, byte [0x42b79e]
mov byte [ebx + 6], dl
call fcn.004072a0
add esp, 4
test eax, eax
je 0x409185
mov edi, ebx
add edi, 0xffffffff
lea ebx, [ebx]
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x409120
mov eax, dword [0x42b7b0]
mov dword [edi], eax
jmp 0x409185
cmp eax, 1
jne 0x40914d
mov cx, word [0x42b7bc]
mov word [esi], cx
mov dl, byte [0x42b7be]
mov byte [esi + 2], dl
jmp 0x409189
test eax, eax
jne 0x409175
mov ecx, dword [str.2000]
mov dword [esi], ecx
mov dl, byte [0x42b794]
mov byte [esi + 4], dl
jmp 0x409189
cmp ecx, 4
jne 0x409175
test eax, eax
jne 0x409175
mov dword [esi], 0x34544e
jmp 0x409189
push eax
push ecx
push str.NT_d._d
push esi
call fcn.00413e72
add esp, 0x10
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x10], 0
je 0x40986f
mov cl, byte [esp + 0xd6]
cmp cl, 1
jne 0x409325
mov ecx, dword [esp + 0x40]
cmp ecx, 6
jb 0x4091f1
push ebp
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00407ae0
add esp, 0xc
cmp byte [esp + 0xd8], 0
je 0x4092cc
lea eax, [esp + 0xd8]
mov edx, ebx
mov ecx, eax
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4091e0
jmp 0x4092cc
cmp ecx, 5
jne 0x4092a7
cmp eax, 2
je 0x4092d7
cmp eax, 1
jne 0x40924e
push ebp
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.004070d0
add esp, 0xc
cmp byte [esp + 0xd8], 0
je 0x4092cc
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 0x409240
jmp 0x4092cc
test eax, eax
jne 0x4092d7
test dword [esp + 0xd4], 0x200
je 0x40927c
mov edx, dword [str.Home]
mov dword [ebx], edx
mov al, byte [0x42af74]
mov byte [ebx + 4], al
mov dword [ebp], 0x33
jmp 0x4092d7
mov ecx, dword [str.Professional]
mov dword [ebx], ecx
mov edx, dword [0x42af58]
mov dword [ebx + 4], edx
mov eax, dword [0x42af5c]
mov dword [ebx + 8], eax
mov cl, byte [0x42af60]
mov byte [ebx + 0xc], cl
mov dword [ebp], 0x34
jmp 0x4092d7
cmp ecx, 4
ja 0x4092d7
mov edx, dword [str.Workstation]
mov dword [ebx], edx
mov eax, dword [0x42b780]
mov dword [ebx + 4], eax
mov ecx, dword [0x42b784]
mov dword [ebx + 8], ecx
mov dword [ebp], 0x29
cmp dword [esp + 0x40], 4
jbe 0x409986
mov eax, ebx
add eax, 0xffffffff
cmp word [esp + 0x18], 9
jne 0x409316
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4092e4
mov edx, dword [str._x64_Edition]
mov dword [eax], edx
mov ecx, dword [0x42b770]
mov dword [eax + 4], ecx
mov edx, dword [0x42b774]
mov dword [eax + 8], edx
mov cl, byte [0x42b778]
mov byte [eax + 0xc], cl
jmp 0x409981
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x409316
jmp 0x4093ce
cmp cl, 3
je 0x409333
cmp cl, 2
jne 0x409981
mov ecx, dword [esp + 0x40]
cmp ecx, 6
jb 0x4093ed
cmp eax, 1
je 0x40934f
cmp eax, 3
je 0x40934f
mov byte [ebx], 0
jmp 0x409355
mov dword [ebx], 0x203252
push ebp
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00407e60
add esp, 0xc
cmp byte [esp + 0xd8], 0
je 0x4093a8
lea eax, [esp + 0xd8]
mov esi, eax
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409380
mov edi, ebx
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x409390
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 0x4093c4
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4093b5
jmp 0x4092ee
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4093c4
mov edx, dword [str._Edition]
mov dword [eax], edx
mov ecx, dword [0x42b764]
mov dword [eax + 4], ecx
mov dl, byte [0x42b768]
mov byte [eax + 8], dl
jmp 0x409981
cmp ecx, 5
jne 0x4097ee
cmp eax, 2
jne 0x409705
mov ax, word [esp + 0x18]
cmp ax, 6
jne 0x4094ae
mov al, byte [esp + 0xd4]
test al, al
jns 0x40948f
mov edi, ebx
add edi, 0xffffffff
mov edi, edi
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x409420
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.00413e72
lea eax, [esp + 0xe8]
add esp, 0x10
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409461
sub eax, esi
add ebx, 0xffffffff
nop
mov cl, byte [ebx + 1]
add ebx, 1
test cl, cl
jne 0x409470
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 0x409bab
test al, 2
je 0x409438
mov edi, ebx
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x409498
mov ecx, 0xb
mov esi, str._Enterprise_Edition_for_Itanium_based_Systems
jmp 0x409434
cmp ax, 9
jne 0x4095a6
mov al, byte [esp + 0xd4]
test al, al
jns 0x40950c
mov eax, ebx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4094c8
mov ecx, dword [str._Datacenter_x64_Edition]
mov dword [eax], ecx
mov edx, dword [0x42b6dc]
mov dword [eax + 4], edx
mov ecx, dword [0x42b6e0]
mov dword [eax + 8], ecx
mov edx, dword [0x42b6e4]
mov dword [eax + 0xc], edx
mov ecx, dword [0x42b6e8]
mov dword [eax + 0x10], ecx
mov edx, dword [0x42b6ec]
mov dword [eax + 0x14], edx
jmp 0x409438
test al, 2
mov eax, ebx
je 0x409559
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x409515
mov ecx, dword [str._Enterprise_x64_Edition]
mov dword [eax], ecx
mov edx, dword [0x42b6c4]
mov dword [eax + 4], edx
mov ecx, dword [0x42b6c8]
mov dword [eax + 8], ecx
mov edx, dword [0x42b6cc]
mov dword [eax + 0xc], edx
mov ecx, dword [0x42b6d0]
mov dword [eax + 0x10], ecx
mov edx, dword [0x42b6d4]
mov dword [eax + 0x14], edx
jmp 0x409438
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x409560
mov ecx, dword [str._Standard_x64_Edition]
mov dword [eax], ecx
mov edx, dword [0x42b6ac]
mov dword [eax + 4], edx
mov ecx, dword [0x42b6b0]
mov dword [eax + 8], ecx
mov edx, dword [0x42b6b4]
mov dword [eax + 0xc], edx
mov ecx, dword [0x42b6b8]
mov dword [eax + 0x10], ecx
mov dx, word [0x42b6bc]
mov word [eax + 0x14], dx
jmp 0x409438
mov eax, dword [esp + 0xd4]
test al, al
jns 0x4095f8
mov eax, ebx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4095b6
mov ecx, dword [str._Datacenter_Edition]
mov dword [eax], ecx
mov edx, dword [0x42b698]
mov dword [eax + 4], edx
mov ecx, dword [0x42b69c]
mov dword [eax + 8], ecx
mov edx, dword [0x42b6a0]
mov dword [eax + 0xc], edx
mov ecx, dword [0x42b6a4]
mov dword [eax + 0x10], ecx
mov dword [ebp], 0x4a
jmp 0x409438
test al, 2
je 0x409653
mov eax, ebx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x409601
mov edx, dword [str._Enterprise_Edition]
mov dword [eax], edx
mov ecx, dword [0x42b684]
mov dword [eax + 4], ecx
mov edx, dword [0x42b688]
mov dword [eax + 8], edx
mov ecx, dword [0x42b68c]
mov dword [eax + 0xc], ecx
mov edx, dword [0x42b690]
push 0
mov dword [eax + 0x10], edx
call fcn.004072a0
add esp, 4
neg eax
sbb eax, eax
and eax, 6
add eax, 0x48
mov dword [ebp], eax
jmp 0x409981
test eax, 0x400
je 0x409699
mov eax, ebx
add eax, 0xffffffff
nop
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x409660
mov ecx, dword [str._Web_Edition]
mov dword [eax], ecx
mov edx, dword [0x42b674]
mov dword [eax + 4], edx
mov ecx, dword [0x42b678]
mov dword [eax + 8], ecx
mov dl, byte [0x42b67c]
mov byte [eax + 0xc], dl
mov dword [ebp], 0x49
jmp 0x409438
test al, 0x20
jne 0x409438
test eax, 0x2000
jne 0x409438
mov eax, ebx
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4096b1
mov ecx, dword [str._Standard_Edition]
mov dword [eax], ecx
mov edx, dword [0x42b660]
mov dword [eax + 4], edx
mov ecx, dword [0x42b664]
mov dword [eax + 8], ecx
mov edx, dword [0x42b668]
mov dword [eax + 0xc], edx
mov cx, word [0x42b66c]
push 0
mov word [eax + 0x10], cx
call fcn.004072a0
add esp, 4
neg eax
sbb eax, eax
and eax, 6
add eax, 0x47
mov dword [ebp], eax
jmp 0x409981
test eax, eax
jne 0x4097ee
mov al, byte [esp + 0xd4]
test al, al
jns 0x409750
mov edx, dword [str.Datacenter_Server]
mov dword [ebx], edx
mov eax, dword [0x42b64c]
mov dword [ebx + 4], eax
mov ecx, dword [0x42b650]
mov dword [ebx + 8], ecx
mov edx, dword [0x42b654]
mov dword [ebx + 0xc], edx
mov ax, word [0x42b658]
mov word [ebx + 0x10], ax
mov dword [ebp], 0x37
jmp 0x409438
test al, 2
je 0x409782
mov ecx, dword [str.Advanced_Server]
mov dword [ebx], ecx
mov edx, dword [0x42b63c]
mov dword [ebx + 4], edx
mov eax, dword [0x42b640]
mov dword [ebx + 8], eax
mov ecx, dword [0x42b644]
mov dword [ebx + 0xc], ecx
mov dword [ebp], 0x36
jmp 0x409438
test al, 0x20
je 0x4097c7
mov edx, dword [str.Small_Business_Server]
mov dword [ebx], edx
mov eax, dword [0x42b344]
mov dword [ebx + 4], eax
mov ecx, dword [0x42b348]
mov dword [ebx + 8], ecx
mov edx, dword [0x42b34c]
mov dword [ebx + 0xc], edx
mov eax, dword [0x42b350]
mov dword [ebx + 0x10], eax
mov cx, word [0x42b354]
mov word [ebx + 0x14], cx
mov dword [ebp], 0x38
jmp 0x409438
mov edx, dword [str.Server]
mov dword [ebx], edx
mov ax, word [0x42b79c]
mov word [ebx + 4], ax
mov cl, byte [0x42b79e]
mov byte [ebx + 6], cl
mov dword [ebp], 0x35
jmp 0x409438
mov al, byte [esp + 0xd4]
test al, 0x10
je 0x409827
mov edx, dword [str.Terminal_Server]
mov dword [ebx], edx
mov eax, dword [0x42b62c]
mov dword [ebx + 4], eax
mov ecx, dword [0x42b630]
mov dword [ebx + 8], ecx
mov edx, dword [0x42b634]
mov dword [ebx + 0xc], edx
mov dword [ebp], 0x2d
jmp 0x409981
test al, 2
je 0x409848
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 0x409981
mov eax, dword [str.Server]
mov dword [ebx], eax
mov cx, word [0x42b79c]
mov word [ebx + 4], cx
mov dl, byte [0x42b79e]
mov byte [ebx + 6], dl
mov dword [ebp], 0x2a
jmp 0x409981
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 0x409a5a
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 0x409a5a
cmp dword [esp + 0x10], edi
ja 0x409a5a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0xd8]
push edx
push str.WINNT
call esi
test eax, eax
jne 0x409910
mov eax, dword [str.Workstation]
mov dword [ebx], eax
mov ecx, dword [0x42b780]
mov dword [ebx + 4], ecx
mov edx, dword [0x42b784]
mov dword [ebx + 8], edx
mov dword [ebp], 0x29
lea eax, [esp + 0xd8]
push eax
push str.LANMANNT
call esi
test eax, eax
jne 0x409945
mov ecx, dword [str.Server]
mov dword [ebx], ecx
mov dx, word [0x42b79c]
mov word [ebx + 4], dx
mov al, byte [0x42b79e]
mov byte [ebx + 6], al
mov dword [ebp], 0x2a
lea ecx, [esp + 0xd8]
push ecx
push str.SERVERNT
call esi
test eax, eax
jne 0x409981
mov edx, dword [str.Advanced_Server]
mov dword [ebx], edx
mov eax, dword [0x42b63c]
mov dword [ebx + 4], eax
mov ecx, dword [0x42b640]
mov dword [ebx + 8], ecx
mov edx, dword [0x42b644]
mov dword [ebx + 0xc], edx
mov dword [ebp], 0x2b
cmp dword [esp + 0x40], 4
jne 0x409438
push str.Service_Pack_6
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x409438
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 0x4099fe
movzx edx, word [esp + 0x48]
push edx
push str._Service_Pack_6a_Build__d
push eax
call fcn.00413e72
lea eax, [esp + 0xe4]
add esp, 0xc
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4099e4
sub eax, esi
add ebx, 0xffffffff
mov cl, byte [ebx + 1]
add ebx, 1
test cl, cl
jne 0x4099f2
jmp 0x409a3a
movzx ecx, word [esp + 0x48]
push ecx
lea edx, [esp + 0x54]
push edx
push str.__s_Build__d
push eax
call fcn.00413e72
lea eax, [esp + 0xe8]
add esp, 0x10
mov esi, eax
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x409a20
sub eax, esi
add ebx, 0xffffffff
mov edi, edi
mov cl, byte [ebx + 1]
add ebx, 1
test cl, cl
jne 0x409a30
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 0x409bab
xor eax, eax
jmp 0x409bb0
cmp dword [esp + 0x40], 4
jne 0x409bab
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x409ad4
mov dx, word [0x42b544]
mov word [esi], dx
movzx eax, byte [0x42b546]
mov byte [esi + 2], al
mov al, byte [esp + 0x51]
cmp al, 0x43
mov dword [ebp], 0xa
je 0x409ab5
cmp al, 0x42
je 0x409ab5
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x50]
push ecx
push edx
push str.Build__d__s
push ebx
call fcn.00413e72
jmp 0x409ba8
mov eax, dword [esp + 0x48]
push eax
push str.OSR2_Build__d
push ebx
call fcn.00413e72
add esp, 0xc
mov dword [ebp], 0xb
jmp 0x409bab
cmp eax, 0xa
jne 0x409b38
mov cx, word [0x42b524]
mov al, byte [esp + 0x51]
cmp al, 0x41
mov word [esi], cx
mov dl, byte [0x42b526]
mov byte [esi + 2], dl
mov dword [ebp], 0x14
je 0x409b19
cmp al, 0x42
je 0x409b19
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x50]
push eax
push ecx
push str.Build__d__s
push ebx
call fcn.00413e72
jmp 0x409ba8
mov edx, dword [esp + 0x48]
push edx
push str.SE_Build__d
push ebx
call fcn.00413e72
add esp, 0xc
mov dword [ebp], 0x15
jmp 0x409bab
cmp eax, 0x5a
jne 0x409bab
mov ax, word [0x42b514]
mov word [esi], ax
mov eax, dword [esp + 0x48]
mov cl, byte [0x42b516]
lea edx, [esp + 0x50]
push edx
push eax
push str.Build__d__s
push ebx
mov byte [esi + 2], cl
call fcn.00413e72
mov dword [ebp], 0x1e
jmp 0x409ba8
mov ecx, dword [str.Win32s]
mov dword [esi], ecx
mov dx, word [0x42b510]
mov word [esi + 4], dx
mov edx, dword [esp + 0x48]
mov al, byte [0x42b512]
lea ecx, [esp + 0x50]
push ecx
push edx
push str.Build__d__s
push ebx
mov byte [esi + 6], al
call fcn.00413e72
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.00412a21
add esp, 0x1d4
ret