Function at 0x43e000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x54
lea eax, [esp + 0x14]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push str.SoftwareRocscienceSwedgeSettings
mov dword [esp + 0x2c], ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43e66f
push ebx
push ebp
lea ecx, [esp + 0xc]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov ebx, 1
push str.wedgeRGB
push ecx
mov dword [esp + 0x28], 0x32
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e65a
mov ebp, dword [sym.imp.MSVCRT.dll_sscanf]
lea edx, [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x3c]
push str._d__d__d
push edx
call ebp
add esp, 0x14
cmp eax, 3
jne 0x43e65a
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
xor eax, eax
and ecx, 0xff
mov ah, byte [esp + 0x20]
mov edi, 0x32
mov al, byte [esp + 0x1c]
mov dword [esp + 0x10], edi
shl eax, 8
or eax, ecx
lea ecx, [esp + 0x30]
mov dword [edx + 0x10], eax
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.shotcreteRGB
push eax
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e128
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x3c]
push str._d__d__d
push ecx
call ebp
add esp, 0x14
cmp eax, 3
jne 0x43e128
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
xor edx, edx
and eax, 0xff
mov dh, byte [esp + 0x20]
mov dl, byte [esp + 0x1c]
shl edx, 8
or edx, eax
mov dword [ecx + 0x30], edx
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.slopeRGB
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e194
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x3c]
push str._d__d__d
push eax
call ebp
add esp, 0x14
cmp eax, 3
jne 0x43e194
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
xor ecx, ecx
and edx, 0xff
mov ch, byte [esp + 0x20]
mov cl, byte [esp + 0x1c]
shl ecx, 8
or ecx, edx
mov dword [eax + 0x14], ecx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.bgRGB
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e200
lea edx, [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x3c]
push str._d__d__d
push edx
call ebp
add esp, 0x14
cmp eax, 3
jne 0x43e200
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
xor eax, eax
and ecx, 0xff
mov ah, byte [esp + 0x20]
mov al, byte [esp + 0x1c]
shl eax, 8
or eax, ecx
mov dword [edx + 0x18], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.boltRGB
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e26b
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x3c]
push str._d__d__d
push ecx
call ebp
add esp, 0x14
cmp eax, 3
jne 0x43e26b
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
xor edx, edx
and eax, 0xff
mov dh, byte [esp + 0x20]
mov dl, byte [esp + 0x1c]
shl edx, 8
or edx, eax
mov dword [ecx + 0x1c], edx
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.selectRGB
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e2d7
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x3c]
push str._d__d__d
push eax
call ebp
add esp, 0x14
cmp eax, 3
jne 0x43e2d7
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
xor ecx, ecx
and edx, 0xff
mov ch, byte [esp + 0x20]
mov cl, byte [esp + 0x1c]
shl ecx, 8
or ecx, edx
mov dword [eax + 0x20], ecx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.waterRGB
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e343
lea edx, [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x3c]
push str._d__d__d
push edx
call ebp
add esp, 0x14
cmp eax, 3
jne 0x43e343
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
xor eax, eax
and ecx, 0xff
mov ah, byte [esp + 0x20]
mov al, byte [esp + 0x1c]
shl eax, 8
or eax, ecx
mov dword [edx + 0x24], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.seismicRGB
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e3ae
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x3c]
push str._d__d__d
push ecx
call ebp
add esp, 0x14
cmp eax, 3
jne 0x43e3ae
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
xor edx, edx
and eax, 0xff
mov dh, byte [esp + 0x20]
mov dl, byte [esp + 0x1c]
shl edx, 8
or edx, eax
mov dword [ecx + 0x28], edx
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.externalRGB
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e41a
lea eax, [esp + 0x20]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
lea eax, [esp + 0x3c]
push str._d__d__d
push eax
call ebp
add esp, 0x14
cmp eax, 3
jne 0x43e41a
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
xor ecx, ecx
and edx, 0xff
mov ch, byte [esp + 0x20]
mov cl, byte [esp + 0x1c]
shl ecx, 8
or ecx, edx
mov dword [eax + 0x2c], ecx
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.DrawType
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e469
lea edx, [esp + 0x18]
lea eax, [esp + 0x30]
push edx
push 0x57bb4c
push eax
call ebp
add esp, 0xc
cmp eax, ebx
jne 0x43e469
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.0043d7c0
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push str.DrawNorth
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e4bd
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push 0x57bb4c
push ecx
call ebp
add esp, 0xc
cmp eax, ebx
jne 0x43e4bd
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov ecx, dword [esp + 0x28]
setne dl
push edx
call fcn.00419160
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.DrawLabels
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e511
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
push 0x57bb4c
push edx
call ebp
add esp, 0xc
cmp eax, ebx
jne 0x43e511
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
test edx, edx
setne al
push eax
call fcn.00419150
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push str.DrawForces
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e5aa
lea edx, [esp + 0x2c]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x40]
push str._d__d__d__d
push eax
call ebp
add esp, 0x18
cmp eax, 4
jne 0x43e5aa
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
xor ecx, ecx
test edx, edx
setne cl
mov dword [eax + 0x354], ecx
mov ecx, dword [esp + 0x1c]
xor edx, edx
test ecx, ecx
setne dl
mov dword [eax + 0x358], edx
mov edx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
setne cl
mov dword [eax + 0x350], ecx
mov ecx, dword [esp + 0x2c]
xor edx, edx
test ecx, ecx
setne dl
mov dword [eax + 0x35c], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x30]
push eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x18]
push ecx
push edx
push 0
push str.DrawResultant
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e600
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
push 0x57bb4c
push edx
call ebp
add esp, 0xc
cmp eax, ebx
jne 0x43e600
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x28]
setne al
mov dword [ecx + 0x360], eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0x57dd08
push edx
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebx
call esi
test eax, eax
jne 0x43e658
lea eax, [esp + 0x18]
lea ecx, [esp + 0x30]
push eax
push 0x57bb4c
push ecx
call ebp
add esp, 0xc
cmp eax, ebx
jne 0x43e658
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x43e64e
cmp eax, 2
jne 0x43e658
mov edx, dword [esp + 0x28]
mov dword [edx + 0x368], eax
mov edi, ebx
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
mov eax, edi
pop ebx
pop edi
add esp, 0x54
ret
mov eax, edi
pop edi
add esp, 0x54
ret