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

Disassembly:
sub esp, 0x1d4
mov eax, dword [str._q_]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x1e4]
push ebp
mov ebp, dword [esp + 0x1e4]
push esi
mov esi, dword [esp + 0x1e4]
mov dword [esp + 0x1dc], eax
push edi
mov byte [esi], 0
lea eax, [esp + 0x18]
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 + 0x3c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], 0x9c
call edi
test eax, eax
mov dword [esp + 0x10], eax
jne 0x40de46
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], 0x94
call edi
test eax, eax
je 0x40e968
mov eax, dword [esp + 0x4c]
sub eax, 0
je 0x40ea71
dec eax
je 0x40e96f
dec eax
jne 0x40eaaa
mov ecx, dword [esp + 0x40]
cmp ecx, 6
jb 0x40ded5
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 0x40de8c
lea ecx, [esp + 0x18]
push ecx
call eax
cmp byte [esp + 0xd6], 1
jne 0x40dec0
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x40deb6
mov edx, dword [str.Vista]
mov dword [esi], edx
mov cx, word [0x41d9ac]
mov word [esi + 4], cx
jmp 0x40e0db
mov word [esi], 0x37
jmp 0x40e0db
mov edx, dword [str.2008]
mov dword [esi], edx
mov al, byte [0x41d9a4]
mov byte [esi + 4], al
jmp 0x40e0d7
cmp ecx, 5
mov eax, dword [esp + 0x44]
jne 0x40e0b6
cmp eax, 2
jne 0x40e085
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 0x40df0d
lea ecx, [esp + 0x18]
push ecx
call eax
cmp byte [esp + 0xd6], 1
jne 0x40df57
mov dx, word [0x41d99c]
mov word [esi], dx
mov al, byte [0x41d99e]
mov byte [esi + 2], al
mov edx, dword [str.Professional]
mov ecx, ebp
mov dword [ecx], edx
mov eax, dword [0x41d390]
mov dword [ecx + 4], eax
mov edx, dword [0x41d394]
mov dword [ecx + 8], edx
mov al, byte [0x41d398]
mov byte [ecx + 0xc], al
mov dword [ebx], 0x42
jmp 0x40e0d7
mov ecx, dword [str.2003]
mov eax, dword [esp + 0xd4]
test al, 0x20
mov dword [esi], ecx
mov dl, byte [0x41d998]
mov byte [esi + 4], dl
je 0x40dfe5
mov ecx, dword [str.Small_Business_Server]
mov eax, ebp
mov dword [eax], ecx
mov edx, dword [0x41d5a0]
mov dword [eax + 4], edx
mov ecx, dword [0x41d5a4]
mov dword [eax + 8], ecx
mov edx, dword [0x41d5a8]
mov dword [eax + 0xc], edx
mov ecx, dword [0x41d5ac]
mov dword [eax + 0x10], ecx
mov dx, word [0x41d5b0]
push 1
mov word [eax + 0x14], dx
call fcn.0040db80
add esp, 4
test eax, eax
je 0x40dfda
mov edi, ebp
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40dfc0
mov eax, dword [0x41d990]
mov dword [edi], eax
mov dword [ebx], 0x4f
jmp 0x40e0d7
mov dword [ebx], 0x4c
jmp 0x40e0d7
test ah, 0x20
push 0
mov ecx, ebp
je 0x40e04a
mov edx, dword [str.Storage_Server]
mov dword [ecx], edx
mov eax, dword [0x41d984]
mov dword [ecx + 4], eax
mov edx, dword [0x41d988]
mov dword [ecx + 8], edx
mov ax, word [0x41d98c]
mov word [ecx + 0xc], ax
mov dl, byte [0x41d98e]
mov byte [ecx + 0xe], dl
call fcn.0040db80
add esp, 4
test eax, eax
je 0x40e03f
mov edi, ebp
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e030
mov eax, dword [0x41d990]
mov dword [edi], eax
mov dword [ebx], 0x4b
jmp 0x40e0d7
mov edx, dword [str.Server]
mov dword [ecx], edx
mov ax, word [0x41d97c]
mov word [ecx + 4], ax
mov dl, byte [0x41d97e]
mov byte [ecx + 6], dl
call fcn.0040db80
add esp, 4
test eax, eax
je 0x40e0d7
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e074
mov eax, dword [0x41d990]
mov dword [edi], eax
jmp 0x40e0d7
cmp eax, 1
jne 0x40e09f
mov cx, word [0x41d99c]
mov word [esi], cx
mov dl, byte [0x41d99e]
mov byte [esi + 2], dl
jmp 0x40e0db
test eax, eax
jne 0x40e0c7
mov ecx, dword [str.2000]
mov dword [esi], ecx
mov dl, byte [0x41d974]
mov byte [esi + 4], dl
jmp 0x40e0db
cmp ecx, 4
jne 0x40e0c7
test eax, eax
jne 0x40e0c7
mov dword [esi], 0x34544e
jmp 0x40e0db
push eax
push ecx
push str.NT_d._d
push esi
call fcn.0040f6f9
add esp, 0x10
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40e771
mov cl, byte [esp + 0xd6]
cmp cl, 1
jne 0x40e26d
mov ecx, dword [esp + 0x40]
cmp ecx, 6
jb 0x40e141
push ebx
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.0040d200
mov al, byte [esp + 0xe4]
add esp, 0xc
test al, al
je 0x40e214
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 0x40e132
jmp 0x40e214
cmp ecx, 5
jne 0x40e1ef
cmp eax, 2
je 0x40e21f
cmp eax, 1
jne 0x40e19c
push ebx
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.0040d440
mov al, byte [esp + 0xe4]
add esp, 0xc
test al, al
je 0x40e214
lea eax, [esp + 0xd8]
mov edx, ebp
mov ecx, eax
sub edx, ecx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40e190
jmp 0x40e214
test eax, eax
jne 0x40e21f
mov eax, dword [esp + 0xd4]
test ah, 2
mov edx, ebp
je 0x40e1c6
mov eax, dword [str.Home]
mov dword [edx], eax
mov cl, byte [0x41d404]
mov byte [edx + 4], cl
mov dword [ebx], 0x33
jmp 0x40e21f
mov eax, dword [str.Professional]
mov dword [edx], eax
mov ecx, dword [0x41d390]
mov dword [edx + 4], ecx
mov eax, dword [0x41d394]
mov dword [edx + 8], eax
mov cl, byte [0x41d398]
mov byte [edx + 0xc], cl
mov dword [ebx], 0x34
jmp 0x40e21f
cmp ecx, 4
ja 0x40e21f
mov eax, dword [str.Workstation]
mov edx, ebp
mov dword [edx], eax
mov ecx, dword [0x41d960]
mov dword [edx + 4], ecx
mov eax, dword [0x41d964]
mov dword [edx + 8], eax
mov dword [ebx], 0x29
cmp dword [esp + 0x40], 4
jbe 0x40e88e
mov edi, ebp
dec edi
cmp word [esp + 0x18], 9
jne 0x40e260
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e230
mov ecx, dword [str._x64_Edition]
mov dword [edi], ecx
mov edx, dword [0x41d950]
mov dword [edi + 4], edx
mov eax, dword [0x41d954]
mov dword [edi + 8], eax
mov cl, byte [0x41d958]
mov byte [edi + 0xc], cl
jmp 0x40e889
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e260
jmp 0x40e30c
cmp cl, 3
je 0x40e27b
cmp cl, 2
jne 0x40e889
mov ecx, dword [esp + 0x40]
cmp ecx, 6
jb 0x40e32a
cmp eax, 1
jne 0x40e296
mov dword [ebp], 0x203252
jmp 0x40e29a
mov byte [ebp], 0
push ebx
lea edx, [esp + 0xdc]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.0040d560
mov al, byte [esp + 0xe4]
add esp, 0xc
test al, al
je 0x40e889
lea eax, [esp + 0xd8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e2c8
mov edi, ebp
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e2d4
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 + 0x18], 9
jne 0x40e304
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e2f7
jmp 0x40e238
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e304
mov edx, dword [str._Edition]
mov dword [edi], edx
mov eax, dword [0x41d944]
mov dword [edi + 4], eax
mov cl, byte [0x41d948]
mov byte [edi + 8], cl
jmp 0x40e889
cmp ecx, 5
jne 0x40e6f0
cmp eax, 2
jne 0x40e608
mov ax, word [esp + 0x18]
cmp ax, 6
jne 0x40e38c
mov al, byte [esp + 0xd4]
test al, al
jns 0x40e36d
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e355
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 0x40e3e3
test al, 2
je 0x40e3e3
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e374
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 0x40e3e3
cmp ax, 9
jne 0x40e4c2
mov al, byte [esp + 0xd4]
mov edi, ebp
dec edi
test al, al
jns 0x40e43d
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e3a8
mov edx, dword [str._Datacenter_x64_Edition]
mov dword [edi], edx
mov eax, dword [0x41d8cc]
mov dword [edi + 4], eax
mov ecx, dword [0x41d8d0]
mov dword [edi + 8], ecx
mov edx, dword [0x41d8d4]
mov dword [edi + 0xc], edx
mov eax, dword [0x41d8d8]
mov dword [edi + 0x10], eax
mov ecx, dword [0x41d8dc]
mov dword [edi + 0x14], ecx
mov edx, dword [esp + 0x48]
and edx, 0xffff
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xe0]
push str.__s_Build__d
push ecx
call fcn.0040f6f9
lea eax, [esp + 0xe8]
add esp, 0x10
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e411
sub eax, edx
dec ebp
mov edi, ebp
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e420
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]
jmp 0x40eaaa
test al, 2
je 0x40e480
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e441
mov edx, dword [str._Enterprise_x64_Edition]
mov dword [edi], edx
mov eax, dword [0x41d8a4]
mov dword [edi + 4], eax
mov ecx, dword [0x41d8a8]
mov dword [edi + 8], ecx
mov edx, dword [0x41d8ac]
mov dword [edi + 0xc], edx
mov eax, dword [0x41d8b0]
mov dword [edi + 0x10], eax
mov ecx, dword [0x41d8b4]
jmp 0x40e3e0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e480
mov edx, dword [str._Standard_x64_Edition]
mov dword [edi], edx
mov eax, dword [0x41d88c]
mov dword [edi + 4], eax
mov ecx, dword [0x41d890]
mov dword [edi + 8], ecx
mov edx, dword [0x41d894]
mov dword [edi + 0xc], edx
mov eax, dword [0x41d898]
mov dword [edi + 0x10], eax
mov cx, word [0x41d89c]
mov word [edi + 0x14], cx
jmp 0x40e3e3
mov eax, dword [esp + 0xd4]
test al, al
jns 0x40e50d
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e4d0
mov edx, dword [str._Datacenter_Edition]
mov dword [edi], edx
mov eax, dword [0x41d878]
mov dword [edi + 4], eax
mov ecx, dword [0x41d87c]
mov dword [edi + 8], ecx
mov edx, dword [0x41d880]
mov dword [edi + 0xc], edx
mov eax, dword [0x41d884]
mov dword [edi + 0x10], eax
mov dword [ebx], 0x4a
jmp 0x40e3e3
test al, 2
je 0x40e562
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e514
mov ecx, dword [str._Enterprise_Edition]
mov dword [edi], ecx
mov edx, dword [0x41d864]
mov dword [edi + 4], edx
mov eax, dword [0x41d868]
mov dword [edi + 8], eax
mov ecx, dword [0x41d86c]
mov dword [edi + 0xc], ecx
mov edx, dword [0x41d870]
push 0
mov dword [edi + 0x10], edx
call fcn.0040db80
add esp, 4
neg eax
sbb eax, eax
and eax, 6
add eax, 0x48
mov dword [ebx], eax
jmp 0x40e889
test ah, 4
je 0x40e5a4
mov edi, ebp
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e570
mov eax, dword [str._Web_Edition]
mov dword [edi], eax
mov ecx, dword [0x41d854]
mov dword [edi + 4], ecx
mov edx, dword [0x41d858]
mov dword [edi + 8], edx
mov al, byte [0x41d85c]
mov byte [edi + 0xc], al
mov dword [ebx], 0x49
jmp 0x40e3e3
test al, 0x20
jne 0x40e3e3
test ah, 0x20
jne 0x40e3e3
mov edi, ebp
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40e5b8
mov ecx, dword [str._Standard_Edition]
mov dword [edi], ecx
mov edx, dword [0x41d840]
mov dword [edi + 4], edx
mov eax, dword [0x41d844]
mov dword [edi + 8], eax
mov ecx, dword [0x41d848]
mov dword [edi + 0xc], ecx
mov dx, word [0x41d84c]
push 0
mov word [edi + 0x10], dx
call fcn.0040db80
add esp, 4
neg eax
sbb eax, eax
and eax, 6
add eax, 0x47
mov dword [ebx], eax
jmp 0x40e889
test eax, eax
jne 0x40e6f0
mov al, byte [esp + 0xd4]
test al, al
jns 0x40e656
mov ecx, dword [str.Datacenter_Server]
mov eax, ebp
mov dword [eax], ecx
mov edx, dword [0x41d82c]
mov dword [eax + 4], edx
mov ecx, dword [0x41d830]
mov dword [eax + 8], ecx
mov edx, dword [0x41d834]
mov dword [eax + 0xc], edx
mov cx, word [0x41d838]
mov word [eax + 0x10], cx
mov dword [ebx], 0x37
jmp 0x40e3e3
test al, 2
mov edx, ebp
je 0x40e688
mov eax, dword [str.Advanced_Server]
mov dword [edx], eax
mov ecx, dword [0x41d81c]
mov dword [edx + 4], ecx
mov eax, dword [0x41d820]
mov dword [edx + 8], eax
mov ecx, dword [0x41d824]
mov dword [edx + 0xc], ecx
mov dword [ebx], 0x36
jmp 0x40e3e3
test al, 0x20
je 0x40e6cb
mov eax, dword [str.Small_Business_Server]
mov dword [edx], eax
mov ecx, dword [0x41d5a0]
mov dword [edx + 4], ecx
mov eax, dword [0x41d5a4]
mov dword [edx + 8], eax
mov ecx, dword [0x41d5a8]
mov dword [edx + 0xc], ecx
mov eax, dword [0x41d5ac]
mov dword [edx + 0x10], eax
mov cx, word [0x41d5b0]
mov word [edx + 0x14], cx
mov dword [ebx], 0x38
jmp 0x40e3e3
mov eax, dword [str.Server]
mov dword [edx], eax
mov cx, word [0x41d97c]
mov word [edx + 4], cx
mov al, byte [0x41d97e]
mov byte [edx + 6], al
mov dword [ebx], 0x35
jmp 0x40e3e3
mov al, byte [esp + 0xd4]
test al, 0x10
je 0x40e729
mov edx, dword [str.Terminal_Server]
mov ecx, ebp
mov dword [ecx], edx
mov eax, dword [0x41d80c]
mov dword [ecx + 4], eax
mov edx, dword [0x41d810]
mov dword [ecx + 8], edx
mov eax, dword [0x41d814]
mov dword [ecx + 0xc], eax
mov dword [ebx], 0x2d
jmp 0x40e889
test al, 2
je 0x40e749
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 0x40e889
mov edx, dword [str.Server]
mov ecx, ebp
mov dword [ecx], edx
mov ax, word [0x41d97c]
mov word [ecx + 4], ax
mov dl, byte [0x41d97e]
mov byte [ecx + 6], dl
mov dword [ebx], 0x2a
jmp 0x40e889
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 0x40e968
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 0x40e968
cmp dword [esp + 0x10], edi
ja 0x40e968
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0xd8]
push edx
push str.WINNT
call esi
test eax, eax
jne 0x40e814
mov ecx, dword [str.Workstation]
mov eax, ebp
mov dword [eax], ecx
mov edx, dword [0x41d960]
mov dword [eax + 4], edx
mov ecx, dword [0x41d964]
mov dword [eax + 8], ecx
mov dword [ebx], 0x29
lea edx, [esp + 0xd8]
push edx
push str.LANMANNT
call esi
test eax, eax
jne 0x40e84b
mov ecx, dword [str.Server]
mov eax, ebp
mov dword [eax], ecx
mov dx, word [0x41d97c]
mov word [eax + 4], dx
mov cl, byte [0x41d97e]
mov byte [eax + 6], cl
mov dword [ebx], 0x2a
lea edx, [esp + 0xd8]
push edx
push str.SERVERNT
call esi
test eax, eax
jne 0x40e889
mov ecx, dword [str.Advanced_Server]
mov eax, ebp
mov dword [eax], ecx
mov edx, dword [0x41d81c]
mov dword [eax + 4], edx
mov ecx, dword [0x41d820]
mov dword [eax + 8], ecx
mov edx, dword [0x41d824]
mov dword [eax + 0xc], edx
mov dword [ebx], 0x2b
cmp dword [esp + 0x40], 4
jne 0x40e3e3
push str.Service_Pack_6
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40e3e3
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 0x40e90a
mov edx, dword [esp + 0x48]
and edx, 0xffff
push edx
push str._Service_Pack_6a_Build__d
push eax
call fcn.0040f6f9
lea eax, [esp + 0xe4]
add esp, 0xc
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e8f1
sub eax, edx
dec ebp
mov edi, ebp
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e900
jmp 0x40e948
mov ecx, dword [esp + 0x48]
and ecx, 0xffff
push ecx
lea edx, [esp + 0x54]
push edx
push str.__s_Build__d
push eax
call fcn.0040f6f9
lea eax, [esp + 0xe8]
add esp, 0x10
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40e931
sub eax, edx
dec ebp
mov edi, ebp
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40e940
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]
jmp 0x40eaaa
xor eax, eax
jmp 0x40eaaf
cmp dword [esp + 0x40], 4
jne 0x40eaaa
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x40e9de
mov dx, word [0x41d724]
mov word [esi], dx
mov al, byte [0x41d726]
mov byte [esi + 2], al
mov al, byte [esp + 0x51]
cmp al, 0x43
mov dword [ebx], 0xa
je 0x40e9c0
cmp al, 0x42
je 0x40e9c0
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x50]
push ecx
push edx
push str.Build__d__s
push ebp
call fcn.0040f6f9
jmp 0x40eaa7
mov eax, dword [esp + 0x48]
push eax
push str.OSR2_Build__d
push ebp
call fcn.0040f6f9
add esp, 0xc
mov dword [ebx], 0xb
jmp 0x40eaaa
cmp eax, 0xa
jne 0x40ea3d
mov cx, word [0x41d704]
mov al, byte [esp + 0x51]
cmp al, 0x41
mov word [esi], cx
mov dl, byte [0x41d706]
mov byte [esi + 2], dl
mov dword [ebx], 0x14
je 0x40ea22
cmp al, 0x42
je 0x40ea22
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x50]
push eax
push ecx
push str.Build__d__s
push ebp
call fcn.0040f6f9
jmp 0x40eaa7
mov edx, dword [esp + 0x48]
push edx
push str.SE_Build__d
push ebp
call fcn.0040f6f9
add esp, 0xc
mov dword [ebx], 0x15
jmp 0x40eaaa
cmp eax, 0x5a
jne 0x40eaaa
mov ax, word [0x41d6f4]
mov word [esi], ax
mov eax, dword [esp + 0x48]
mov cl, byte [0x41d6f6]
lea edx, [esp + 0x50]
push edx
push eax
push str.Build__d__s
push ebp
mov byte [esi + 2], cl
call fcn.0040f6f9
mov dword [ebx], 0x1e
jmp 0x40eaa7
mov ecx, dword [str.Win32s]
mov dword [esi], ecx
mov dx, word [0x41d6f0]
mov word [esi + 4], dx
mov edx, dword [esp + 0x48]
mov al, byte [0x41d6f2]
lea ecx, [esp + 0x50]
push ecx
push edx
push str.Build__d__s
push ebp
mov byte [esi + 6], al
call fcn.0040f6f9
mov dword [ebx], 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.0040f175
add esp, 0x1d4
ret